File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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!