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
2015-03-12 14:50 GMT+01:00 Jeanderson :
> 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
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".
Just cloned your repo and started the app with mvn jetty:run and
pointed browser to http://localhost:8080/message_resource/register -
everything looks good :)
I think Eclipse is cheating you ;-)
2015-03-12 13:50 GMT+01:00 Jeanderson :
> Hi Lukasz,
>
> Actually the resource file is located in an a
Hi Lukasz,
Actually the resource file is located in an action folder as the
documentation suggests:
* Register.properties -
https://github.com/jeandersonbc/labs-struts2/tree/hotfix/tutorial/message_resource
*/src/main/resources/lab_struts/tutorial/message_resource/action*
* Register.java -
https:
Almost gut
your action is in:
src/main/java/lab_struts/tutorial/message_resource/action
but the related properties file in:
src/main/resources/lab_struts/tutorial/message_resource/
so they differ on the last part - "action" and that's why message
cannot be found. You have two options here:
- ren
Hello Lukasz Lenart,
Thank you for your message. I imagined that working with a directory tree
generated by Eclipse could be a problem.
I started a new project based on Maven [1], however, if you run my code,
you will get again a warning:
"
2015-03-11 17:48:00,316 WARN
(com.opensymphony.xwork2.u
2015-03-11 18:09 GMT+01:00 Jeanderson :
> Hi everyone,
>
> I am a beginner in Struts 2 and so far, I've been working with the official
> tutorials to get started with the framework. Also, I'm using Eclipse.
>
> In the "Message Resource Files" [1], the framework can't find the key
> located in the .
Hi everyone,
I am a beginner in Struts 2 and so far, I've been working with the official
tutorials to get started with the framework. Also, I'm using Eclipse.
In the "Message Resource Files" [1], the framework can't find the key
located in the .properties file although it is placed in the same pa
9 matches
Mail list logo