I am having problems with ApplicationResources as I keep getting the error "Missing message for key ....", when the MessageTag is being executed. (Using struts 1.1 and tomcat 4.0.4).
The Struts Example application works ok. I have stepped through the code for initialisation of the struts ActionServlet and also from the doStart() method of the MessageTag. It seems to create a PropertyMessageResources object which holds a HashMap of the messages from the ApplicatioResources.properties file. However upon initislisation the HashMap only seems to be created, not populated with the values. It then stores it in the ServletContext. When the doStart() method is called in the MessageTag, it gets the MessageResources from the ServletContext. Magically, the messages HashMap in the MessageResources which was created on initialisation are populated with all the messages from the ApplicationResources.properties file. What I would like to know, is where abouts in the code this population of the HashMap occurs, because the Struts example application has populated the HashMap by the time the MessageTag is called. But in the application I am writing, I have followed through the same code, and the HashMap isn't populated when it comes to the executing the MessageTag. If anyone knows where it is populated and how it gets called, please let me know. Thanks, Shaun. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

