This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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 REST with Spring (video course) this week in the Spring 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..

I agree. Here's the link:
subject: message resource file
It's not a secret anymore!