15,000 Jobs Available in:
Java, ASP, C#, PHP, SQL, SAP, MySQL and many more.
- Class Quick -
The moose likes Struts and the fly likes  Help on Message resource bundle in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark " Help on Message resource bundle in Struts2" Watch " Help on Message resource bundle in Struts2" New topic
Author

Help on Message resource bundle in Struts2

Prathima Gajibiji
Greenhorn

Joined: Oct 06, 2007
Posts: 6
Hi,
I am working on migrating a struts 1.2 application into Struts2 and we use the following code in one of our jspf file which is included in other jsps:

MessageResource msgRsrc = MessageResources.getMessageResources("properties.HCLMessages");
pageContext.setAttribute(org.apache.struts.Globals.MESSAGE_KEY,msgRsrc,PageContext.REQUEST_SCOPE);


How can I achieve this in Struts2? Please help!

Thank you in advance,
Prathima

This message was edited 1 time. Last update was at by Prathima Gajibiji

 
 
subject: Help on Message resource bundle in Struts2
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture