This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes  Help on Message resource bundle in Struts2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help on Message resource bundle in Struts2
 
Similar Threads
Struts2 java.lang.reflect.InvocationTargetException (Struts2 with Hibernate)
Struts2
struts2
struts2
Struts2