struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Weber" <>
Subject Re: getMessageResources in webLogic?
Date Thu, 17 Jun 2004 20:39:41 GMT
Sure. This is some code that's executed at startup, in a

import org.apache.struts.util.MessageResources;
MessageResources 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:

which contains the line:


----- Original Message ----- 
From: "Karr, David" <>
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 [] 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, 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, without the locale extension.
> Does anyone know why? Many thanks,
> Jacob

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message