use getParameterValues() instead of getParameter().
getParameterValues
public java.lang.String[] getParameterValues(java.lang.String name)
Returns an array of String objects containing all of the values the given
request parameter has, or null if the parameter does not exist. For example,
in an HTTP servlet, this method returns an array of String objects
containing the values of a query string or posted form.
If the parameter has a single value, the array has a length of 1.
Parameters:
name - a String containing the name of the parameter whose value is
requested
Returns:
an array of String objects containing the parameter's values
See Also:
getParameter(java.lang.String)
Geert 'Darling' Van Damme
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Cheong Takhoe
> Sent: woensdag 22 maart 2000 6:41
> To: [EMAIL PROTECTED]
> Subject: Multiple selections
>
>
> Hi,
>
> Would like to know how would one use jsp to retrieve multiple selection
> data from a list box that was posted over. Multiple selection as
> in the user
> selects multiple options
> from those presented in a list box and then the user posts it over. How
> would I retrieve the values
> because when I use it under "GET", it showed
>
> Var1=AAA&Var1=AAB&Var1=AAC
>
> because all of them is under 1 parameter name.
> Anyone could help me out? Thanks...
>
> regards,
> Cheong Takhoe
>
> ==================================================================
> =========
> 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