Re: Hello World gone wrong
Hi Richard, simply put, struts is not initializing the message resources until you call an action mapping. Since you go straight to hello.jsp direct, struts bean taglib doesn't have the resource bundle available. See the output log below that comes at the point when I call 'hello.do', an action forward I configured in the struts-config to forward via struts action servlet to hello.jsp. You can see from the output log that struts is setting up the bundles for itself and for your app when you go through struts for the first time. HTH Adam PS you need at least commons-beanutils and commons-digester in your lib as well as struts.jar. On 11/15/2003 09:12 AM Richard Morris wrote: I have tried a couple of other things trying to figure out why I can't get this simple application to work correctly. As you have generously asked, I have attached the application in a jar file and the server.xml file I have used. Here is the exception from the log that I am receiving under the Tomcat 5 configuration: javax.servlet.jsp.JspException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.struts.util.RequestUtils.retrieveMessageResources(RequestUtils.java:1103) at org.apache.struts.util.RequestUtils.message(RequestUtils.java:1043) at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294) INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.(): Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.(): Initializing, config='org.apache.struts.action.ActionResources', returnNull=true FINE 11:49:13 org.apache.struts.action.ActionServlet.initServlet(): Scanning web.xml for controller servlet mapping FINE 11:49:13 org.apache.struts.action.ActionServlet.addServletMapping(): Process servletName=action, urlPattern=*.do FINE 11:49:13 org.apache.struts.action.ActionServlet.initServlet(): Mapping for servlet 'action' = '*.do' FINE 11:49:13 org.apache.struts.action.ActionServlet.initModuleConfig(): Initializing module path '' configuration from '/WEB-INF/struts-config.xml' FINE 11:49:13 org.apache.struts.action.ActionServlet.initModuleMessageResources(): Initializing module path '' message resources from 'HelloWorldMessageResources' INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.(): Initializing, config='HelloWorldMessageResources', returnNull=true FINE 11:49:13 org.apache.struts.action.ActionServlet.initModuleDataSources(): Initializing module path '' data sources FINE 11:49:13 org.apache.struts.action.ActionServlet.initModulePlugIns(): Initializing module path '' plug ins FINE 11:49:13 org.apache.struts.util.RequestUtils.getModuleName(): Get module name for path /hello.do FINE 11:49:13 org.apache.struts.util.RequestUtils.getModuleName(): Module name found: default FINE 11:49:13 org.apache.struts.action.RequestProcessor.process(): Processing a 'GET' for path '/hello' FINE 11:49:13 org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(): Delegating via forward to '/hello.jsp' INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.(): Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.(): Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true INFO 11:49:13 org.apache.struts.util.PropertyMessageResources.(): Initializing, config='org.apache.struts.taglib.bean.LocalStrings', returnNull=true FINE 11:49:13 org.apache.struts.util.PropertyMessageResources.getMessage(): getMessage(en,title.helloworld) FINEST 11:49:13 org.apache.struts.util.PropertyMessageResources.loadLocale(): loadLocale(en) FINEST 11:49:13 org.apache.struts.util.PropertyMessageResources.loadLocale(): Loading resource 'HelloWorldMessageResources_en.properties' FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Loading resource completed FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): loadLocale(en_US) FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Loading resource 'HelloWorldMessageResources_en_US.properties' FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Loading resource completed FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): loadLocale() FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Loading resource 'HelloWorldMessageResources.properties' FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Loading resource completed FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Saving message key '.title.helloworld FINEST 11:49:14 org.apache.struts.util.PropertyMessageResources.loadLocale(): Saving message key '.label.helloworld INFO 11:49:14 org.apache.strut
Re: Hello World gone wrong
On 11/12/2003 02:50 AM Richard Morris wrote: Adam, The struts.jar is located in the /WEB-INF/lib folder. I know the struts.jar file is working because I can use the html tags (i.e. , , etc.) without error. I just don't know what the problem could be. I am sure it is something stupid but with such a simple application, you think it would be noticeable. Anyway, thanks for the help. If you send me the app in a JAR file and the server.xml I'll try it out on my machine if you like. Adam -- 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]
Re: Hello World gone wrong
Adam, The struts.jar is located in the /WEB-INF/lib folder. I know the struts.jar file is working because I can use the html tags (i.e. , , etc.) without error. I just don't know what the problem could be. I am sure it is something stupid but with such a simple application, you think it would be noticeable. Anyway, thanks for the help. Richard Morris [EMAIL PROTECTED] - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, November 11, 2003 4:28 AM Subject: Re: Hello World gone wrong > I also think you need to check that the struts.jar is in your WEB-INF > directory... > > On 11/11/2003 01:27 AM Yee, Richard K,,DMDCWEST wrote: > > Richard, > > Try using forward slashes in your docbase instead of '\' > > docBase="E:/Projects/HelloWorld" /> > > > > Java might otherwise interpret it as an escape char. > > > > -Richard > > > > > > -Original Message- > > From: Richard Morris [mailto:[EMAIL PROTECTED] > > Sent: Monday, November 10, 2003 4:03 PM > > To: Struts Users Mailing List > > Subject: Re: Hello World gone wrong > > > > > > Hi Adam, > > > > The HelloWorldMessageResources.properties file is where you have stated. I > > also tried your comment style in the properties file as well as removing all > > comments and it didn't change anything. I have also removed the application > > init-param from the web.xml file. > > > > As for the webapp DTD version, you are right about that. I had the wrong > > DTD in there and so modified it. Here are the DTDs I am using for both the > > web.xml and struts-config.xml files: > > > > > > > 2.3//EN" > > "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> > > > > > > > Configuration 1.1//EN" > > > > "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> > > > > As for the versions of tomcat and struts, I am using struts 1.1 (the one > > currently available for download from their web site). As for the tomcat > > versions, I have tried to run them under the following configurations: > > > >Tomcat Version: Apache Tomcat/4.1.29 > >JVM Version: 1.4.2_02-b03 > >JVM Vendor: Sun Microsystems Inc. > >OS Name: Windows XP (Pro) > >OS Version: 5.1 > >OS Architecture: x86 > > and > >Tomcat Version: Apache Tomcat/4.1.27 > >JVM Version: 1.4.2_01-b06 > >JVM Vendor: Sun Microsystems Inc. > >OS Name: Linux (Red Hat 9) > >OS Version: 2.4.20-8smp > >OS Architecture: i386 > > > > You are right about it being a simple app. I started with just a JSP page > > with plain html, then I added the html taglib. Everything worked fine but > > when I tried to use the bean taglib to use resource bundles, that's when I > > got this error. > > > > Would there be any changes that I would need to make to the tomcat > > server.xml configuration file to get this to work? I am just using the > > default configuration file with the added > reloadable="true" docBase="E:\Projects\HelloWorld" />. > > > > Anyway, thanks for whatever help you can send my way. > > > > Richard Morris > > [EMAIL PROTECTED] > > > > > > - Original Message - > > From: "Adam Hardy" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Monday, November 10, 2003 2:01 PM > > Subject: Re: Hello World gone wrong > > > > > > > >>Hi Richard, you don't need to package it. I have never packaged a > >>resources file or put it in a jar seperately. According to your > >>config, it's in the right place, something like > >> > > > > e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties > > > >>right? The error must lie elsewhere. > >> > >>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 versi
Re: Hello World gone wrong
I also think you need to check that the struts.jar is in your WEB-INF directory... On 11/11/2003 01:27 AM Yee, Richard K,,DMDCWEST wrote: Richard, Try using forward slashes in your docbase instead of '\' docBase="E:/Projects/HelloWorld" /> Java might otherwise interpret it as an escape char. -Richard -Original Message- From: Richard Morris [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 4:03 PM To: Struts Users Mailing List Subject: Re: Hello World gone wrong Hi Adam, The HelloWorldMessageResources.properties file is where you have stated. I also tried your comment style in the properties file as well as removing all comments and it didn't change anything. I have also removed the application init-param from the web.xml file. As for the webapp DTD version, you are right about that. I had the wrong DTD in there and so modified it. Here are the DTDs I am using for both the web.xml and struts-config.xml files: http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> As for the versions of tomcat and struts, I am using struts 1.1 (the one currently available for download from their web site). As for the tomcat versions, I have tried to run them under the following configurations: Tomcat Version: Apache Tomcat/4.1.29 JVM Version: 1.4.2_02-b03 JVM Vendor: Sun Microsystems Inc. OS Name: Windows XP (Pro) OS Version: 5.1 OS Architecture: x86 and Tomcat Version: Apache Tomcat/4.1.27 JVM Version: 1.4.2_01-b06 JVM Vendor: Sun Microsystems Inc. OS Name: Linux (Red Hat 9) OS Version: 2.4.20-8smp OS Architecture: i386 You are right about it being a simple app. I started with just a JSP page with plain html, then I added the html taglib. Everything worked fine but when I tried to use the bean taglib to use resource bundles, that's when I got this error. Would there be any changes that I would need to make to the tomcat server.xml configuration file to get this to work? I am just using the default configuration file with the added . Anyway, thanks for whatever help you can send my way. Richard Morris [EMAIL PROTECTED] - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 10, 2003 2:01 PM Subject: Re: Hello World gone wrong Hi Richard, you don't need to package it. I have never packaged a resources file or put it in a jar seperately. According to your config, it's in the right place, something like e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties right? The error must lie elsewhere. 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: - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> On 11/10/2003 04:48 AM Richard Morris wrote: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE Here is the struts-config.xml file: null="false"/> --- -- Here is the web.xml file: helloworld org.apache.struts.action.ActionServlet application HelloWorldMessageResources config /WEB-INF/struts-config.xml --- -- 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]
RE: Hello World gone wrong
Richard, Try using forward slashes in your docbase instead of '\' docBase="E:/Projects/HelloWorld" /> Java might otherwise interpret it as an escape char. -Richard -Original Message- From: Richard Morris [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 4:03 PM To: Struts Users Mailing List Subject: Re: Hello World gone wrong Hi Adam, The HelloWorldMessageResources.properties file is where you have stated. I also tried your comment style in the properties file as well as removing all comments and it didn't change anything. I have also removed the application init-param from the web.xml file. As for the webapp DTD version, you are right about that. I had the wrong DTD in there and so modified it. Here are the DTDs I am using for both the web.xml and struts-config.xml files: http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> As for the versions of tomcat and struts, I am using struts 1.1 (the one currently available for download from their web site). As for the tomcat versions, I have tried to run them under the following configurations: Tomcat Version: Apache Tomcat/4.1.29 JVM Version: 1.4.2_02-b03 JVM Vendor: Sun Microsystems Inc. OS Name: Windows XP (Pro) OS Version: 5.1 OS Architecture: x86 and Tomcat Version: Apache Tomcat/4.1.27 JVM Version: 1.4.2_01-b06 JVM Vendor: Sun Microsystems Inc. OS Name: Linux (Red Hat 9) OS Version: 2.4.20-8smp OS Architecture: i386 You are right about it being a simple app. I started with just a JSP page with plain html, then I added the html taglib. Everything worked fine but when I tried to use the bean taglib to use resource bundles, that's when I got this error. Would there be any changes that I would need to make to the tomcat server.xml configuration file to get this to work? I am just using the default configuration file with the added . Anyway, thanks for whatever help you can send my way. Richard Morris [EMAIL PROTECTED] - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 10, 2003 2:01 PM Subject: Re: Hello World gone wrong > Hi Richard, you don't need to package it. I have never packaged a > resources file or put it in a jar seperately. According to your > config, it's in the right place, something like > e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties > right? The error must lie elsewhere. > > 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: > > > docBase="E:\Projects\HelloWorld" /> > > > > - Original Message - > > From: "Adam Hardy" <[EMAIL PROTECTED]> > >>On 11/10/2003 04:48 AM Richard Morris wrote: > >>>org.apache.jasper.JasperException: > >>>Cannot find message resources under key org.apache.struts.action.MESSAGE > >>> > >>>Here is the struts-config.xml file: > >>> > >>> > null="false"/> > >>> > >>> > >>>--- > >>>-- > >>>Here is the web.xml file: > >>> > >>>helloworld > >>> > > org.apache.struts.action.ActionServlet > > > > > >>> > >>> application > >>> HelloWorldMessageResources > >>> > >>> > >>> config > >>> /WEB-INF/struts-config.xml > >>> > >>> > >>> > &g
Re: Hello World gone wrong
Hi Adam, The HelloWorldMessageResources.properties file is where you have stated. I also tried your comment style in the properties file as well as removing all comments and it didn't change anything. I have also removed the application init-param from the web.xml file. As for the webapp DTD version, you are right about that. I had the wrong DTD in there and so modified it. Here are the DTDs I am using for both the web.xml and struts-config.xml files: http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> As for the versions of tomcat and struts, I am using struts 1.1 (the one currently available for download from their web site). As for the tomcat versions, I have tried to run them under the following configurations: Tomcat Version: Apache Tomcat/4.1.29 JVM Version: 1.4.2_02-b03 JVM Vendor: Sun Microsystems Inc. OS Name: Windows XP (Pro) OS Version: 5.1 OS Architecture: x86 and Tomcat Version: Apache Tomcat/4.1.27 JVM Version: 1.4.2_01-b06 JVM Vendor: Sun Microsystems Inc. OS Name: Linux (Red Hat 9) OS Version: 2.4.20-8smp OS Architecture: i386 You are right about it being a simple app. I started with just a JSP page with plain html, then I added the html taglib. Everything worked fine but when I tried to use the bean taglib to use resource bundles, that's when I got this error. Would there be any changes that I would need to make to the tomcat server.xml configuration file to get this to work? I am just using the default configuration file with the added . Anyway, thanks for whatever help you can send my way. Richard Morris [EMAIL PROTECTED] - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 10, 2003 2:01 PM Subject: Re: Hello World gone wrong > Hi Richard, you don't need to package it. I have never packaged a > resources file or put it in a jar seperately. According to your config, > it's in the right place, something like > e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties > right? The error must lie elsewhere. > > 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: > > > docBase="E:\Projects\HelloWorld" /> > > > > - Original Message - > > From: "Adam Hardy" <[EMAIL PROTECTED]> > >>On 11/10/2003 04:48 AM Richard Morris wrote: > >>>org.apache.jasper.JasperException: > >>>Cannot find message resources under key org.apache.struts.action.MESSAGE > >>> > >>>Here is the struts-config.xml file: > >>> > >>> > null="false"/> > >>> > >>> > >>>- > >>>Here is the web.xml file: > >>> > >>>helloworld > >>> > > org.apache.struts.action.ActionServlet > > > >>> > >>> application > >>> HelloWorldMessageResources > >>> > >>> > >>> config > >>> /WEB-INF/struts-config.xml > >>> > >>> > >>> > >>>- > >>>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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello World gone wrong
Hi Richard, you don't need to package it. I have never packaged a resources file or put it in a jar seperately. According to your config, it's in the right place, something like e:\projects\helloworld\WEB-INF\classes\HelloWorldMessageResources.properties right? The error must lie elsewhere. 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: - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> On 11/10/2003 04:48 AM Richard Morris wrote: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE Here is the struts-config.xml file: null="false"/> - Here is the web.xml file: helloworld org.apache.struts.action.ActionServlet application HelloWorldMessageResources config /WEB-INF/struts-config.xml - 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]
Re: Hello World gone wrong
Adam, 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: Richard Morris [EMAIL PROTECTED] - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Monday, November 10, 2003 3:47 AM Subject: Re: Hello World gone wrong > On 11/10/2003 04:48 AM Richard Morris wrote: > > org.apache.jasper.JasperException: > > Cannot find message resources under key org.apache.struts.action.MESSAGE > > > > Here is the struts-config.xml file: > > > > > > > > > > - > > Here is the web.xml file: > > > > helloworld > > org.apache.struts.action.ActionServlet > > > > application > > HelloWorldMessageResources > > > > > > config > > /WEB-INF/struts-config.xml > > > > > > > > - > > 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... > > HTH > Adam > > -- > 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] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hello World gone wrong
On 11/10/2003 04:48 AM Richard Morris wrote: org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE Here is the struts-config.xml file: - Here is the web.xml file: helloworld org.apache.struts.action.ActionServlet application HelloWorldMessageResources config /WEB-INF/struts-config.xml - 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... HTH Adam -- 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]