is your ActionServlet load priority set as 1 or maybe 2 to ensure that the servlet is loaded first ?
On Tuesday 01 April 2003 2:02 pm, [EMAIL PROTECTED] wrote: > I am using struts 1.1rc1 & TomCat 3.3. In my struts-config.xml I have the > following line; > > <message-resources parameter="messages" /> > > I have messages.properties in /WEB-INF/classes. > > If I call a JSP straight after a Tomcat 3.3 restart, I get > javax.servlet.ServletException: Cannot find message resources under key > org.apache.struts.action.MESSAGE > > However, if I call the underlying action & form for the JSP which contains > the line; MessageResources resources = (MessageResources) > request.getAttribute(Action.MESSAGES_KEY); Then everything is ok. > > I get the impression this resource should be load at container start-up. > They were in 1.0.2 when the resource was supplied as a paramter to the > Action servlet. > > Any ideas what I am doing wrong? > > T. > > Visit our website at http://www.ubswarburg.com > > This message contains confidential information and is intended only > for the individual named. If you are not the named addressee you > should not disseminate, distribute or copy this e-mail. Please > notify the sender immediately by e-mail if you have received this > e-mail by mistake and delete this e-mail from your system. > > E-mail transmission cannot be guaranteed to be secure or error-free > as information could be intercepted, corrupted, lost, destroyed, > arrive late or incomplete, or contain viruses. The sender therefore > does not accept liability for any errors or omissions in the contents > of this message which arise as a result of e-mail transmission. If > verification is required please request a hard-copy version. This > message is provided for informational purposes and should not be > construed as a solicitation or offer to buy or sell any securities or > related financial instruments. > > > --------------------------------------------------------------------- > 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]