Ram,

<message-resources parameter="org/cokee/javaee/springtest/messages"/>

The location of message resources file (in your case,
ApplicationResources.properties) should be defined in your
struts-config.xml. This is struts specific configurations.

You could simply put a <message-resources> section in your
struts-config.xml, for example:

<message-resources parameter="strutsTutorial/ApplicationResources"/>

The value of message-resources attribute 'parameter' should always be the
full class path of the message resources file.

Dongyi

-----Original Message-----
From: ram001 [mailto:[EMAIL PROTECTED] 
Sent: 15 October 2006 06:44
To: user@struts.apache.org
Subject: Error with the resource file


Hi

 i am working on small struts applications . when i am running this
application in tomcat it throwing a error like 

javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:682)

org.apache.jsp.userRegistration_jsp._jspService(userRegistration_jsp.java:99
)
        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
20)
        
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:294)
        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

My ApplicationResources.properties file is in my package like
(WEB-INF/classes/strutsTutorial/) . I gave a path in web.xml like below 

<init-param>
        <param-name>Application</param-name>
        <param-value>strutsTutorial.ApplicationResources</param-value>
</init-param>

Can any one help 

Thanks in advance 

Ram
-- 
View this message in context:
http://www.nabble.com/Error-with-the-resource-file-tf2445574.html#a6817825
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to