aspose file tools*
The moose likes Struts and the fly likes how to use multiple resource files in struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to use multiple resource files in struts2" Watch "how to use multiple resource files in struts2" New topic
Author

how to use multiple resource files in struts2

Vijay jai Singh
Greenhorn

Joined: Jan 07, 2009
Posts: 26
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
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The argument to i18n.resources is a comma-separated list.
Vijay jai Singh
Greenhorn

Joined: Jan 07, 2009
Posts: 26
Thanks David for solution. it worked.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to use multiple resource files in struts2