2015-03-12 14:50 GMT+01:00 Jeanderson <jeanderso...@gmail.com>:
> I didn't mentioned that I'm running on Tomcat 7, sorry about that.
> Yep, Tomcat and Eclipse might be trolling me.
>
> I tried running with Jetty. I noticed that it seems ignores the
> "welcome-file-list" property from "web.xml" because
> I got an exception when accessing "localhost:8080/message_resource".
>
> I just added an index action pointing to "/index.jsp" so you can see the
> dummy form.
> The register action just points to "thankyou.jsp" in case of a successful
> result.
> The "thankyou.jsp" doesn't use the .properties file.
>
> I pushed my changes into my hotfix branch. Maybe you could try clonning
> again the project [1] and see if the form from index.action
> displays correctly.

You have defined "index" action as follow

<action name="index">
   <result>/index.jsp</result>
</action>

which means it will use "com.opensymphony.xwork2.ActionSupport" as a
default action class (because "default-class-ref" is set to this class
in struts-default.xml)

so there is no corresponding properties file - neither package nor
ActionSupport. You can add it, ie.
"com.opensymphony.xwork2.ActionSupport.properties" or change
"default-class-ref" to point your base action class (ie.
lab_struts.tutorial.message_resource.action.BaseAction which extends
ActionSupport) and then add appropriated properties file.


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to