471,354 Members | 2,207 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

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

Hello,

I'm developping my first Struts application.

I've got this error: Cannot find message resources under key
org.apache.struts.action.MESSAGE

web.xml
<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>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

struts-config.xml
<struts-config>
<!-- ===== Définition des messages de l'application =========== -->
<message-resources parameter="com.unifr.sis.etunet.ApplicationResourc es"/>

</struts-config>

my jsp page
<bean:message key="prompt.username"/>

my ApplicationResources.properties (in
\WEB-INF\classes\com.unifr.sis.etunet)
prompt.password=Password
prompt.username=Username

I use Sybase EAServer (normally works fine with J2EE and with
Struts...)

idea? Need some help...

Cedric
Jul 17 '05 #1
1 11622
Try to setup resources in web.xml

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>application</param-name>
<param-value>
com.unifr.sis.etunet.ApplicationResources
</param-value>
</init-param>
<!-- ... -->
</servlet>

Cedric wrote:
Hello,

I'm developping my first Struts application.

I've got this error: Cannot find message resources under key
org.apache.struts.action.MESSAGE

web.xml
<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>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

struts-config.xml
<struts-config>
<!-- ===== Définition des messages de l'application =========== -->
<message-resources parameter="com.unifr.sis.etunet.ApplicationResourc es"/>

</struts-config>

my jsp page
<bean:message key="prompt.username"/>

my ApplicationResources.properties (in
\WEB-INF\classes\com.unifr.sis.etunet)
prompt.password=Password
prompt.username=Username

I use Sybase EAServer (normally works fine with J2EE and with
Struts...)

idea? Need some help...

Cedric

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Moreno | last post: by
reply views Thread by James | last post: by
2 posts views Thread by Neerja Tyagi | last post: by
1 post views Thread by Sean Quinn | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.