File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes labelBean -> bean:message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "labelBean -> bean:message" Watch "labelBean -> bean:message" New topic

labelBean -> bean:message

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
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 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

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:
subject: labelBean -> bean:message
It's not a secret anymore!