In web.xml try <param-value>/dynaform/ApplicationResources</param-value>
-----Original Message----- From: Saroj Kumar Choudhury [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:28 AM To: Struts Users Mailing List Subject: Missing message Exception Hi, I am new to Struts World. I wanted to do one Login Application, using DynaValidatorForm. while accessing http://localhost:7001/dynaForm I am getting the following error message: <Jul 7, 2003 9:41:08 AM IST> <Error> <HTTP> <[WebAppServletContext(3512032,dynaF orm,/dynaForm)] Root cause of ServletException javax.servlet.jsp.JspException: Missing message for key "label.login" at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:2 97) at jsp_servlet.__login._jspService(__login.java:159) at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:265) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:304) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:200) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:2546) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2260) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120) > It become difficult for me to find out where to keep the ApplicationResources.properties file .. I have kept that under WEB-INF/classes/dynaform directory. I am enclosing here my ApplicationResources.properties, web.xml and struts-config.xml, jsp file for your references.. ApplicationResources.properties # Errors errors.required={0} is required. # Label label.login= User Name label.password= Password web.xml <?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> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>dynaform.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> <load-on-startup>1</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> <error-page> <error-code>404</error-code> <location>/login.jsp</location> </error-page> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> </web-app> struts-config.xml <!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> <form-beans> <form-bean name="loginForm" type="org.apache.struts.validator.DynaValidatorForm"> <form-property name="userName" type="java.lang.String" /> <form-property name="passWord" type="java.lang.String" /> </form-bean> </form-beans> <action-mappings> <action path="/login" type="dynaform.LoginAction" scope="request" name="loginForm" validate="true" input="/login.jsp"> <forward name="success" path="/index.jsp" /> <forward name="failure" path="/login.jsp" /> </action> </action-mappings> <message-resources parameter="dynaform.ApplicationResources" /> <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> <set-property property="pathnames" value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml" /> </plug-in> </struts-config> login.jsp <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <html:html> <body> <html:errors /> <html:form action="login"> <bean:message key="label.login" />:<html:text property="userName" /><br> <bean:message key="label.password" /><html:text property="passWord" /><br> <html:submit value="login" /> </html:form> </body> </html:html> I am using Weblogic6.1 Application Server.... Any suggestion will be appreciated.... Regards, Saroj --------------------------------------------------------------------- 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]