You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jana Navaneethan <ja...@labs.gte.com> on 2002/12/04 22:08:38 UTC

Internationalization of checkbox label

Hi,
      I want to use values, labels for the multibox from my application
properties file. I want to create a String[] in my form bean containing
elements from properties file (keys).  for example in the code below I want
to create string [] items form my properties file, i.e. UPS should come from
properties in my ActionForm. Can someone tell me how to do that? Or any
other work around for this problem? Any help would be greatly appreciated!

Thanks,
Jana.

private String[] items = {"UPS","FedEx","Airborne"};

<logic:iterate id="item" property="items">
  <html:multibox property="selectedItems">
   <bean:write name="item"/>
  </html:multibox>
   <bean:write name="item"/>
</logic:iterate>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>