You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Steve A Drake <sa...@comet.ucar.edu> on 2001/05/21 23:19:00 UTC
multibox
Hello. I'm trying to use html:multibox with one String[] that contains
Strings for all of the checkboxes to display and another String[] that
contains the currently selected checkboxes. With the following code, I can
display the checkboxes but don't understand how to control which box
or boxes are checked (with the other String[]). For example,
<logic:iterate name="myForm" property="findAssets" id="element">
<html:multibox property="findAssets">
<bean:write name="element" />
</html:multibox>
<bean:write name="element" />
<br />
</logic:iterate>
generates a set of multiboxes that have the boxes checked. How would I
rewrite this to generate the multiboxes that use another String[] to
indicate which boxes are checked? Or is there a better way? Thanks.