Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

message resource file

 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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'/>" />


Thanks,
Neeraj
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
Neeraj Vij
Ranch Hand
Posts: 315
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.. it worked for me..

Regards,
Neeraj.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic