struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Kelly" <>
Subject Re: MessageResources problem ?
Date Fri, 28 Mar 2003 10:40:57 GMT
You should really have the bundles named like this.

myresource_de (Germany)
myresourse_ko (Korea)

One of the struts book will have a good line on this, or the i18n page at
the main web site.


----- Original Message -----
From: "Eric Chow" <>
To: "Struts Users Mailing List" <>
Sent: Friday, March 28, 2003 11:30 AM
Subject: MessageResources problem ?


For use multiple message-resources,

I set the following in struts-config.xml

<message-resources parameter="eric.mymessage" null="false"/>
<message-resources key="country" parameter="eric.countrylist" null="false"/>

Right?  The "eric.mymessage" is use by default.

Anyway, If I want to retrieve the default(eric.mymessage) in some area, such
as ActionForm or Actions.

I will use the following statement to get the MessageResources that store in

MessageResources messages =

But the above statement will only return the default message resources.

How can I get the MesageResource of the bundle "country" ?????

Best regards,

If you know what you are doing,
it is not called RESEARCH!

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

View raw message