First one:
1) set multiple="true" on your <html:select /> tag.
2) Create a product_id property on your form bean that is a String array:

  public String[] getProduct_id() { }
  public void setProduct_id(String[] newValue) { }

(I think so, anyway. I haven't done this for a while, but I think this is the way it works. I responded to a similar question with this suggestion a few weeks ago and was not contradicted.)

-- Jeff

marc wrote:
First one:

Have do I collect multiple choice's from a options group?

*****CODE*****
<html:select property="product_id" styleClass="prodselect" >
<html:options collection="products" property="value" labelProperty="label" />
</html:select>
*****CODE END*****


If I have the above. Then have do I collect the choice into an array, when I submit??



Second:

I wanna do something fancy with my options box's. I wanna have one options box with the choices, then a button. And then a emty options box.
The when I select things in the first options box, and hint the button. Then selectet one's magicly move's to the emty box. And then when I submit the form I wanna send the choice's from the second one.




Thanks and best regards


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



Reply via email to