Cannot find message resources under key org.apache.struts.action.MESSAGE

J

Joos Nielsen

This struts problem occurs alot, but I never found the correct
solution in teh groups.

Here is how I solved it:

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value> <!-- this
reference was missing!!! -->
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
 
S

Sudsy

Joos said:
This struts problem occurs alot, but I never found the correct
solution in teh groups.
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value> <!-- this
reference was missing!!! -->
</init-param>

This problem will NEVER occur if you just take the time to read the
documentation. This is just so fundamental to the working of Struts
that I've never read about someone missing it before.
<load-on-startup>1</load-on-startup>

Why do you specify this? I have numerous websites using Struts and
don't worry about when the servlet is loaded. I leave it up to the
container to load it as needed. Your choice, of course.
 
R

Ryan Stewart

Sudsy said:
Why do you specify this? I have numerous websites using Struts and
don't worry about when the servlet is loaded. I leave it up to the
container to load it as needed. Your choice, of course.
Probably because this is how it is in the Struts example app, and as you
said, it seems he doesn't read documentation.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,263
Messages
2,571,064
Members
48,769
Latest member
Clifft

Latest Threads

Top