Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

843842Oct 1 2003 — edited Oct 2 2003
My struts.xml file has:
------------------------------------------------------------------------------------------------------------------------------------
<message-resources parameter="ApplicationResources.properties" />
------------------------------------------------------------------------------------------------------------------------------------

My web.xml file has:
------------------------------------------------------------------------------------------------------------------------------------
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts.xml</param-value>
</init-param>
</servlet>
------------------------------------------------------------------------------------------------------------------------------------

I have 2 files:
ApplicationResources_en.properties and
ApplicationResources_fr.properties

These files are stored in WEB-INF/classes directory and is stored in CLASSPATH.

When I run my browser, I get following wonder why:
------------------------------------------------------------------------------------------------------------------------------------
javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)

etc.....
------------------------------------------------------------------------------------------------------------------------------------

Any hints etc on this....?

THANKS!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 30 2003
Added on Oct 1 2003
1 comment
152 views