struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Terry Gardner <Terry.Gard...@Sun.COM>
Subject Re: [S2] how to use multiple resource files in struts2
Date Wed, 06 May 2009 09:26:13 GMT
Set multiple resource per line in your struts.xml file, separated by  
commas, for example:

   <constant name="struts.custom.i18n.resources"  
value="globalMessages,Resources1,Resources2" />


On May 6, 2009, at 4:53 AM, Sonu S wrote:

> Hi,
>
> I am trying to use two or more resource files in struts2, like this
>
> struts.custom.i18n.resources=Resources1
> struts.custom.i18n.resources=Resources2
>
> but it is not working (in JSP pages only values from Resource2 are  
> being
> displayed and for keys are being displayed from resource1)
>
> please tell me how to use multiple resource files in struts2
>
> Thanks


Mime
View raw message