This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Struts and the fly likes labelBean -> bean:message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "labelBean -> bean:message" Watch "labelBean -> bean:message" New topic
Author

labelBean -> bean:message

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
Hello
Is it possible to write the value part of a LabelValueBean such that when it is used in struts collection, for example a radio button set, the value part will interpreted as a bean:message... and substituted dynamically with the proper value for the current local and applicationresources.properties file, just as it would if it was statically written? I realize this would require two "passes" of the compiler, which is unlikely, however conceptually is there an alternative or indeed a solution with struts1 or struts2? tia.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

AFAIK you'd have to create the label bean w/ the resource manually. I've never seen anybody use a LVB w/ S2.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: labelBean -> bean:message
 
Similar Threads
bean:message tag inside logic:equal
bean:message in my custom tag
I18N for Action
Controlling Struts Validation Dynamically
struts forward link?