You can use the keyword "multiple" with the select tag. e.g.
<select name="lstColor" size="2" multiple>
<option>Red</option>
<option>Green</option>
<option>Blue</optin>
</select>

To retrieve the values, use
String strColor = request.getParameter("lstColor");
This will assign the selected values, delimited by commas, to strColor.




On Thu, 4 May 2000, Anna Spångberg wrote:

> How do i get
>
> multiple values from a select menu with request.getParameter ?
>
> thanks
>
> anna
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to