Sure. This is some code that's executed at startup, in a ServletContextListener:
import org.apache.struts.util.MessageResources; MessageResources testResources = MessageResources.getMessageResources("com.mycompany.www.config.TestResources "); String message = testResources.getMessage("testMessage"); On both WebLogic and Tomcat, testResources evaluates to a valid PropertyMessageResources object. But on Tomcat, message will have a value, and on WebLogic it will be null. Inside the WAR, there is a file: WEB-INF/src/com/mycompany/www/config/TestResources_en_US.properties which contains the line: testMessage=yes Thanks, Jacob ----- Original Message ----- From: "Karr, David" <[EMAIL PROTECTED]> Newsgroups: gmane.comp.jakarta.struts.user Sent: Thursday, June 17, 2004 10:54 AM Subject: RE: getMessageResources in webLogic? Without more information, it's unlikely anyone could see what is going wrong here. Show us the structure of your WAR, and that might help. > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jacob Weber > > In my Struts app, I need to get data from a resource bundle. > So I make a > call to: > > MessageResources.getMessageResources("myFile") > > The file name is actually myFile_en_US.properties, and when I > run this > code on Tomcat, it's able to find the right file. But when I run the > same code on WebLogic, it doesn't find it. It only finds the file if > it's called myFile.properties, without the locale extension. > > Does anyone know why? Many thanks, > Jacob --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]