I think you are missing this :
<!-- ========================================= Resource Settings
-->
<message-resources parameter="resources.application" null="false"/>
<!-- ============================================================
-->
Where resources is the directory within WEB-INF and
application.properties is the properties file.
You may put the null = "true" to get null value if there is a message
missing. I personally prefer "false" as I can catch any errors that may
not have been defined in the properties file
Put this after the </action-mapping> tag in struts-config.xml and see
if it works.
Shishir
-----Original Message-----
From: Anita Raeppel [mailto:[EMAIL PROTECTED]
Sent: Monday, January 19, 2004 7:10 PM
To: [EMAIL PROTECTED]
Subject: PLEASE HELP!!!!
I am developing a new Struts Application. I have successfully been able
to run the StrutsBlank example following the instructions from a
tutorial on the web.
However when I try to execute my own project I am getting the
following error message in the browser:
javax.servlet.ServletException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:800)
org.apache.jsp.Login_jsp._jspService(Login_jsp.java:166)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
Inside my JSP there are two lines of code which seem to be causing this
problem they are:
<%@ taglib uri="/WEB-INF/lib/struts-bean.tld"
prefix="bean" %>
<%@ taglib uri="/WEB-INF/lib/struts-html.tld"
prefix="html" %>
I am running Eclipse version 3.0
with a Tomcat Plugin version 5.0.16
and I using Struts version 1.1
My struts-config.xml is setup as the following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD
Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<!-- Data Sources -->
<data-sources>
</data-sources>
<!-- Form Beans -->
<form-beans>
<form-bean name="LoginForm"
type="com.struts.rs.LoginActionForm"/>
<form-bean name="DataActionForm"
type="com.struts.rs.DataActionForm"/>
</form-beans>
<!-- Global Forwards -->
<global-forwards>
<forward name="RSLogin" path="/Login.jsp" />
<forward name="OppLog" path="/RSframe.jsp" />
<forward name="EntryForm" path="/entryForm.jsp"
/>
</global-forwards>
<!-- Action Mappings -->
<action-mappings>
<action path = "/RSLogin"
type = "com.struts.rs.LoginAction"
name = "LoginForm"
scope = "request"
validate = "true"
input = "/Login.jsp"
>
<forward name="RSLogin" path="/Login.jsp" />
</action>
<!-- Action Mappings -->
<action path = "/RSframe"
type = "com.struts.rs.DataAction"
name = "DataActionForm"
scope = "request"
validate = "false"
input = "/RSframe.jsp"
>
<forward name="RSframe" path="/RSframe.jsp" />
</action>
<action path = "/entryForm"
type = "com.struts.rs.EntryAction"
name = "DataActionForm"
scope = "session"
validate = "false"
input = "/entryForm.jsp"
>
<forward name="entryForm" path="/entryForm.jsp"
/>
</action>
</action-mappings>
</struts-config>
and my web-xml file looks like :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp">
<display-name>RS</display-name>
<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.struts.rs.resources.ApplicationResources</param-value>
</init-param>
<init-param>
<param-name>config</param-name>
<param-value>WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>2</param-value>
</init-param>
<init-param>
<param-name>validate</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>Login.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>struts-bean.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-html.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-logic.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-template.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-template.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-nested.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-nested.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-tiles.tld</taglib-uri>
<taglib-location>/WEB-INF/lib/struts-tiles.tld</taglib-location>
</taglib>
</web-app>
If anyone could help it would be greatly appreciated
:-)
__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus
---------------------------------------------------------------------
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]