Re: javax.servlet.ServletException: Missing message for key index.title
Have not looked at the struts-example in awhile but here is the entry for the web.xml file: init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param Barry - Original Message - From: Timothy Stewart [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 2:56 PM Subject: javax.servlet.ServletException: Missing message for key index.title I am trying to view the struts-example/index.jsp when the page loads I get the javax.servlet.ServletException: Missing message for key index.title I found the entry in ApplicationResources.properties that defines index.title. I verified that the ApplicationResources.properties is in the war I check the documentation for the example and it says If you check the application's web.xml, you will see how these objects are loaded. The message resource is loaded by the application parameter to the ActionServlet. When the ActionServlet initializes, it parses the ApplicationResources.properties in the package folder into the default message resource. If you change a message in the resource, and then reload the application, it will appear throughout the application. I looked at the web.xml and found no mention of the ApplicationResources.properties. servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml/param-value /init-param load-on-startup1/load-on-startup /servlet I looked at the javadoc for the ActionServlet, it mentions nothing about the resource parameter for the ActionServlet. How does the Struts framework find these resources? Why is mine failing? Thanks, Timmy This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - 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: javax.servlet.ServletException: Missing message for key index.title
!-- ACTION SERVLET =-- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueresources.properties.messages/param-value /init-param init-param -Martin Gainty *Everything has a price..* - Original Message - From: Timothy Stewart [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 5:56 PM Subject: javax.servlet.ServletException: Missing message for key index.title I am trying to view the struts-example/index.jsp when the page loads I get the javax.servlet.ServletException: Missing message for key index.title I found the entry in ApplicationResources.properties that defines index.title. I verified that the ApplicationResources.properties is in the war I check the documentation for the example and it says If you check the application's web.xml, you will see how these objects are loaded. The message resource is loaded by the application parameter to the ActionServlet. When the ActionServlet initializes, it parses the ApplicationResources.properties in the package folder into the default message resource. If you change a message in the resource, and then reload the application, it will appear throughout the application. I looked at the web.xml and found no mention of the ApplicationResources.properties. servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml, /WEB-INF/struts-config-registration.xml/param-value /init-param load-on-startup1/load-on-startup /servlet I looked at the javadoc for the ActionServlet, it mentions nothing about the resource parameter for the ActionServlet. How does the Struts framework find these resources? Why is mine failing? Thanks, Timmy This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - 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]
javax.servlet.ServletException: Missing message for key index.title
Hi friends, I've got the following error, which i got while opening a jsp file. javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461) at jsp._0002fjsp_0002fBookView_0002ejspBookView_jsp_3._jspService(_0002fjsp_0002fBookView_0002ejspBookView_jsp_3.java:150) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) ... pls help me solving the problem, i've checked the classpaths and files, which seems to be in place. ravi
Re: javax.servlet.ServletException: Missing message for key index.title
I suppose you haven't defined the index.title value in your MessageResources.porperties. ravi shankar wrote: Hi friends, I've got the following error, which i got while opening a jsp file. javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461) at jsp._0002fjsp_0002fBookView_0002ejspBookView_jsp_3._jspService(_0002fjsp_0002fBookView_0002ejspBookView_jsp_3.java:150) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.java:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) ... pls help me solving the problem, i've checked the classpaths and files, which seems to be in place. ravi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: javax.servlet.ServletException: Missing message for key index.title
I suppose you haven't defined the index.title value in your MessageResources.porperties. Hi thanx for replying. Yup, I've the file and the 'index.title' is defined. i am using 'ApplicationResources.properties' file which i got it in struts-example application which i downloaded from the site. pls could you tell me what files has to be in which folder.. thanx ravi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: javax.servlet.ServletException: Missing message for key index.title
pls could you tell me what files has to be in which folder.. thanx ravi its not so important where you keep the ApplicationResources.properties file, and afaik its not even important what you name it, as long as its properly defined in your web-inf/struts-config.xml file message-resources parameter=what.ever.your.package.ApplicationResources/ in this case the ApplicationResources.properties file should be in classes/what/ever/your/package/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: javax.servlet.ServletException: Missing message for key index.title
pls help me in fixing this problem.. i am stuck badly rs - Original Message - From: kiuma [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 6:42 PM Subject: Re: javax.servlet.ServletException: Missing message for key index.title I suppose you haven't defined the index.title value in your MessageResources.porperties. ravi shankar wrote: Hi friends, I've got the following error, which i got while opening a jsp file. javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:461) at jsp._0002fjsp_0002fBookView_0002ejspBookView_jsp_3._jspService(_0002fjsp_000 2fBookView_0002ejspBookView_jsp_3.java:150) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) ... pls help me solving the problem, i've checked the classpaths and files, which seems to be in place. ravi -- 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]
RE: javax.servlet.ServletException: Missing message for key index.title
Pls check your MessageResources.porperties file u had not given Index.title=My Index Blah Blah .. -Original Message- From: ravi shankar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 11:01 AM To: Struts Users Mailing List Subject: Re: javax.servlet.ServletException: Missing message for key index.title pls help me in fixing this problem.. i am stuck badly rs - Original Message - From: kiuma [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, November 25, 2002 6:42 PM Subject: Re: javax.servlet.ServletException: Missing message for key index.title I suppose you haven't defined the index.title value in your MessageResources.porperties. ravi shankar wrote: Hi friends, I've got the following error, which i got while opening a jsp file. javax.servlet.ServletException: Missing message for key index.title at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImp l.java:461) at jsp._0002fjsp_0002fBookView_0002ejspBookView_jsp_3._jspService(_0002fjsp _000 2fBookView_0002ejspBookView_jsp_3.java:150) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServle t.ja va:130) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle t.ja va:282) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) at org.apache.tomcat.core.Handler.service(Handler.java:287) ... pls help me solving the problem, i've checked the classpaths and files, which seems to be in place. ravi -- 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] **Disclaimer** Information contained in this E-MAIL being proprietary to Wipro Limited is 'privileged' and 'confidential' and intended for use only by the individual or entity to which it is addressed. You are notified that any use, copying or dissemination of the information contained in the E-MAIL in any manner whatsoever is strictly prohibited. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: javax.servlet.ServletException: Missing message for key index.title
pls help me in fixing this problem.. i am stuck badly rs logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent do you have that snippet in the first jsp you load ? it doesn't look like it or you would get that error when your file is not loaded, which is the problem I think you have, make sure the file is in the path you configured in struts-config.xml , see my reply yesterday regarding your path. Also take a closer look at the struts-example, that snippet and much more is in it -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]