struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Cheng" <mailing-l...@chrisshare.net>
Subject add bundle attribute to optionsCollection
Date Fri, 14 Mar 2003 13:36:57 GMT
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? 

Mime
View raw message