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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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.
 
Consider Paul's rocket mass heater.
 
subject: how to use multiple resource files in struts2
 
Similar Threads
Struts2
STRUTS2
Struts2
struts2
Intergration of Struts2 and EJB3.0 using struts2-ejb3-plugin