With a HTML <SELECT> list, what is the easiest way to collect the <OPTION>
values with a <jsp:useBean>?

For example:

<SELECT NAME="foo">
<OPTION VALUE="1"> First option
<OPTION VALUE="2"> Second
<OPTION VALUE="3"> Last
</SELECT>

...I select all three options and submit to a JSP which has the
following:

<jsp:useBean id="foobean" class="whatever" />
<jsp:setParameter name="foobean" property="*" />

If my fooBean has a method...

public void setFoo(String value);

... it will receive the string "1,2,3".

That's sort of OK, but it's a bit dull having to parse out the values
(and what if my <OPTION>s have commas in the values?)

So...Is there some easier way to collect <OPTION> values with a bean?

Cheers
Richard



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to