aspose file tools
The moose likes Struts and the fly likes message resource file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "message resource file" Watch "message resource file" New topic

message resource file

Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315

Is it possible to assign the value of a key specified in message resource files to a variable ?

I need something like this..

<c:set var="test" value="<bean:message key='gdHome.sectionheader.topheader' bundle='gdCommon'/>" />

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
You can set a variable using the body of the <c:set> tag.

Try this:

<c:set var="test"><bean:message key='gdHome.sectionheader.topheader' bundle='gdCommon'/> </c:set>

Consultant, Sima Solutions
Neeraj Vij
Ranch Hand

Joined: Nov 25, 2003
Posts: 315
thanks.. it worked for me..

Consider Paul's rocket mass heater.
subject: message resource file