Ended up being <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>org.apache.struts.webapp.example.ApplicationResources</param-va lue> </init-param>
in my struts-config.xml I have defined <message-resources parameter="org.apache.struts.webapp.example.ApplicationResources"> </message-resources> <message-resources parameter="org.apache.struts.webapp.example.AlternateApplicationResources" key="alternate"> </message-resources> When I look at the server debug output it reads 17:06:54,917 INFO [PropertyMessageResources] Initializing, config='org.apache.struts.webapp.example.AlternateApplicationResources', returnNull=true Nothing about the ApplicationResources, Until I added the init-param in the web.xml. Where can I find documentation on this struts-config.xml file. Are you not supposed to have a message-resource without a key? Do you always have to pass the init param to the servlet for a message-resource without a key? Thanks Everyone that Suggested solutions, Timmy -----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2003 4:21 PM To: Struts Users Mailing List Subject: Re: javax.servlet.ServletException: Missing message for key "index.title" <!--============================================================ ACTION SERVLET =============================================================--> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>resources.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-name>action</servlet-name> > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > <init-param> > <param-name>config</param-name> > <param-value>/WEB-INF/struts-config.xml, > /WEB-INF/struts-config-registration.xml</param-value> > </init-param> > <load-on-startup>1</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] 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]