You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Christopher Cheng <ma...@chrisshare.net> on 2003/03/14 14:36:57 UTC
add bundle attribute to optionsCollection
I have modified optionsCollection to have the bundle attribute so that the the tag knows how to display different languages.
<app:optionsCollection bundle="MYBUNDLE" property="countryList"/>
MYBUNDLE is the bundle saved in the session while countryList is a collection of LabelValueBean, so if getLabel() returns COUNTRY.US, it knows to get COUNTRY.US value from the property file.
I guess this feature is useful for those who work in different languages. Could I contribute my code to Struts?