Hi,
     You Can do one thing.
     Let us suppose that You have 3 select box.
    Now Please give same name to all of these 3 Select Box. Let's Say
'select'.
    Now when you get the value of 'select' by String
myVar=request.getParameter("select");
    Then 'myVar' gives you values like myVar="1,2,3". (Here 1 is for select
box 1, 2 is for select box 2 and so on......);
    I think that It'll Helpful for u.
PRanav
----- Original Message -----
From: Jon Thomas <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 29, 2000 11:57 PM
Subject: Getting Multiple HTML Select values from a posted form


> Does anyone know if there is a simple way to get all the values for a
> multiple select box using the request object?
> Curently if I use request.getParameter("paramName") I only get the first
> parameter.
> I'm sure I could figure out how to get this using a sring tokenizer on the
> querystring but this is one of those situations that I cannot believe I am
> the first to face, yet I can't seem to find documentation on
>
> To put it another way if I have in the querystring
> "&paramName=1&paramName=2&paramName=3" is there a simple way in JSP to
> return these from the posted form as myVar = "1,2,3".  Any help is
> appreciated.
>
> Thanks,
> Jt.
>
>
===========================================================================
> 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