How many items are in the "func" data structure in request scope? This is what drives the number of iterations.
robert > -----Original Message----- > From: Roland Carlsson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 03, 2004 5:02 AM > To: Struts Users Mailing List > Subject: Multibox problem > > > Hi! > > I'm trying to create a set of checkboxes with the MulitBox-tag. > > The problem is that I get an extra checkbox with brackets around its value, > like in this html-code where I expect two checkboxes but get three: > > <input type="checkbox" name="functions" value="[test, prov]"> > [test, prov] > <input type="checkbox" name="functions" value="prov" checked="checked"> > prov > <input type="checkbox" name="functions" value="test" checked="checked"> > test > > > My page has this code inside it: ("funk" are a Collection stored in the > request, "filedata" has the property "functions" that also is a Collection) > > <logic:iterate id="item" name="func" scope="request"> > <html:multibox name="filedata" property="functions"> > <bean:write name="item"/> > </html:multibox> > <bean:write name="item"/> > </logic:iterate> > > Could you please point out why I get this extra checkbox > > Thanks in advance > Roland Carlsson > > > ps: I have looked in the arcives but it says it doesn't support textsearch > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]