This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes bean:message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean:message" Watch "bean:message" New topic
Author

bean:message

vamsi nani
Greenhorn

Joined: Jun 14, 2006
Posts: 12
can any one explain the tag bean:message ? what is its significance ?
Samuel Cox
Ranch Hand

Joined: Nov 16, 2004
Posts: 96

One of its typical uses is for replacing labels via different resource files based on user locale. For instance, instead of having a jsp like:



You would have:



If you do it this way and you want to change Name to Nombre, it is done in one place and propagates throughout your jsp pages.
 
 
subject: bean:message