Hi Lukasz, Your suggestion was indeed really helpful! My example runs smoothly on Tomcat and Jetty. No more trolling ;-)
I'm really thankful for your time and assistance. Now I understand better how the framework manages message resources and actions. If you could suggest any reading to know more about Struts 2, it would be awesome although you already did a nice working explaning the problem. Thank you again Lukasz. Best regards, Jeanderson Barros Cândido http://jeandersonbc.github.io 2015-03-18 4:05 GMT-03:00 Lukasz Lenart <lukaszlen...@apache.org>: > 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 > >