Sneha Sharma@CONTEXT
06/29/2000 11:43 AM

Yeah!
Instead of calling getParameter , call getParameterValues(paramName);
Returns an array of String objects containing all of the values the given
request parameter has, or null if the parameter
     does not exist.  If the parameter has a single value, the array has a
length of 1.

Sneha




Jon Thomas <[EMAIL PROTECTED]> on 06/29/2000 02:27:16 PM

Please respond to A mailing list about Java Server Pages specification and
      reference <[EMAIL PROTECTED]>



 To:      [EMAIL PROTECTED]

 cc:      (bcc: Sneha Sharma/Context)



 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