I can't see why. Your app is so simple, it's got to be a gotcha.
Perhaps the comments in the file are not allowed - I always use /* comment */
Also, that action servlet parameter 'application' is deprecated, I think.
You could put this in the struts-config message-resources node:
factory="org.apache.struts.util.PropertyMessageResourcesFactory"
BTW what version of struts and tomcat are you using? I see you've got a reference to the webapp_2.2 dtd in your web.xml. I don't suppose you can upgrade to at least have a servlet 2.3 container?
Adam
On 11/10/2003 09:49 PM Richard Morris wrote:
I do have the properties file located in the /WEB-INF/classes directory. When I couldn't get it to work using this method, I tried putting the properties into a package and then jar'ed it and put the jar in the /WEB-INF/lib directory. It still couldn't find the properties file.
I am using the default tomcat configuration with the following server.xml addition: <Context path="/HelloWorld" reloadable="true" docBase="E:\Projects\HelloWorld" />
----- Original Message ----- From: "Adam Hardy" <[EMAIL PROTECTED]>On 11/10/2003 04:48 AM Richard Morris wrote:null="false"/>org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE
Here is the struts-config.xml file: <struts-config> <message-resources parameter="HelloWorldMessageResources"<servlet-class>org.apache.struts.action.ActionServlet</servlet-class></struts-config>
--------------------------------------------------------------------- Here is the web.xml file: <servlet> <servlet-name>helloworld</servlet-name>
<init-param> <param-name>application</param-name> <param-value>HelloWorldMessageResources</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> </servlet>
--------------------------------------------------------------------- Here is the HelloWorldMessageResources.properties file: # Page Titles title.helloworld=Hello World
# Labels label.helloworld=Hello World!
Have you got your HelloWorldMessageResources.properties file deployed in the WEB-INF/classes directory? That is where you have specified that it is, since you have given no path to such as org.myapp.HelloWorldMess...
-- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

