Sorry, I should have included that. I'm using Tomcat 4.0. I have log4j.jar, poolman.jar, and struts.jar in my application's /WEB-INF/lib, and jasper-runtime.jar and naming-factory.jar in $TOMCAT_HOME/lib.
-----Original Message----- From: Drozdowski, Terry [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 10:57 AM To: 'Struts Users Mailing List' Subject: RE: Message resources What servlet container are you using? -------------------------- Terry Drozdowski Staff, Technology Services SIM Technology - Phoenix Charles Schwab & Co. (602)355-8843 Warning: All e-mail sent to this address will be received by the Charles Schwab Corporate e-mail system and is subject to archival and review by someone other than the recipient. -----Original Message----- From: Justin Piper [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 01, 2001 9:43 AM To: Struts Users Mailing List Subject: Message resources I'm sure I'm missing something obvious, but after a day of trying to solve this, I'm quite tired of beating my head against the wall. For some reason it seems that ActionServlet isn't able to load the message resources for my application. I have the following lines in my web.xml file: <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>ApplicationResources</param-value> </init-param> <!-- Irrelevant lines snipped --> <load-on-startup>2</load-on-startup> </servlet> In the /WEB-INF/classes directory, I have a file named ApplicationResources.properties, containing the following lines: index.title=Index error.login.username.required=Username is required error.login.password.required=Password is required error.login.incorrect=Invalid username/password pair; please try again If I include '<bean:message key="index.title"/>' in index.jsp and open it in a web browser, I get a ServletException, "Missing message for key index.title". I added some debugging code to index.jsp; <% String name = "ApplicationResources.properties"; java.net.URL url = null; url = this.getClass().getClassLoader().getResource(name); out.println("<code>url</code> is null:" + (new Boolean(url == null)).toString() + "<br>"); %> <logic:present name="org.apache.struts.action.MESSAGE" scope="application"> Application resources loaded. </logic:present> <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application"> Application resources not loaded. </logic:notPresent> which produces: url is null:true Application resources loaded. The struts-example application functions properly, as do my ActionServlets (though <html:errors/> always returns an empty string, even if my ActionForm returns validation errors). I am at a loss to explain this odd behavior, and would appreciate any insight you could provide. -- "Picture the sun as the origin of two intersecting 6-dimensional hyperplanes from which we can deduce a certain transformational sequence which gives us the terminal velocity of a rubber duck ..." -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>