aspose file tools*
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
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://aspose.com/file-tools
 
subject: labelBean -> bean:message