----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

You can use the HttpServletRequest class' method (Inherited from
ServletRequest) called getParameterValues(<form name>) which returns a
String array.
If the name of your multiple select is "multifoo" you would get all selected
items by doing the following:

String[] fooArray = request.getParameterValues("multifoo");

>From there, just iterate through the array and pick off the elements.

Greg
----- Original Message -----
From: "Mario Krolo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 1:35 PM
Subject: multiple select tag


> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files.  Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> I want to use the SELECT MULTIPLE html tag on my web page
> to allow the user multiple selections.
> Does anyone know how these multiple values can be retrieved
> inside the servlet?  An example would be appreciated.
>
> Thank You
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search Archives:
> <http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>
>



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to