This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "bean: message tag" Watch "bean: message tag" New topic
Author

bean: message tag

Weston Kornfeld
Greenhorn

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
Sheriff

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: bean: message tag
 
Similar Threads
getting error with bean:message tag
html:link/bean message
message resource file
Cannot find message resources
Confirmation reg Properties file