>  I'm assuming its not smart enough to do
> this?

Nope. Struts is smart enough to do this. If you use the multibox tag as
David Gaulin
suggested and your bean looks like

public void setFruit( String[] fruits ) {...}
public String[] getFruit() {...}

Then all your multiboxes look like

<html:multibox property="fruit" value="kiwi" />
and so on.

Your bean will be automatically populated with an array of all the selected
fruits. So in your example

> [x] Apple
> [ ] Kiwi
> [x] Mango
> [ ] Banana

getFruit() in your action would return an array containg the strings "Apple"
& "Mango"

Are you trying this and it's not working?

-Jonathan


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to