This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes Struts and the fly likes bean: message tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean: message tag" Watch "bean: message tag" New topic

bean: message tag

Weston Kornfeld

Joined: Mar 01, 2005
Posts: 28
<bean:message bundle='<%=bundle%>' key='call_center'/>

Does anyone know how to extract the value out of <bean:message tag and put it into a variable in a scriplet? Or some other way of getting a value out of a properties file?

Many Thanks
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

It sounds like you are trying to put business logic in your view. You should probably move whatever it is you are trying to do to an Action and it should be much simpler from there. Actions can easily retrieve the properties file.

A good workman is known by his tools.
I agree. Here's the link:
subject: bean: message tag
jQuery in Action, 3rd edition