By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,631 Members | 1,144 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,631 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.