Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
message resource file
Neeraj Vij
Ranch Hand
Posts: 315
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
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>
Merrill
Consultant,
Sima Solutions
Neeraj Vij
Ranch Hand
Posts: 315
posted 17 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks.. it worked for me..
Regards,
Neeraj.
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Setting value for a key programmatically for arg0 tag
Struts validation with minlength
Unable to validate Mask attribute
DynaValidatorActionForm not working
Struts Validator: Blank JS Alerts
More...