Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help on Message resource bundle in Struts2

 
Prathima Gajibiji
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic