Well request.getParameterValues("vName") would return an array of String so
the following code might do the trick.

String[] arr = request.getParameterValues("vName");


Have a nice day.
With regards,
Sachin S. Khanna.
----- Original Message -----
From: Brian Burridge <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 15, 1999 9:50 PM
Subject: Getting values for an HTML Form Checkbox


> I have been using request.getParameter() to get the values of a specific
> HTML form sent through get or post. But, how do I get the multiple
> values that might come back if I use a checkbox in my HTML form? If I do
> the getParamter, I would only get one of the values back because the
> HTTP would be like this
> http://www.someurl.com/form.jsp?vname=1&vname=2&vname=3.
>
> I need to get all the values for "vname" back. Is it stored in some type
> of array?
>
> --
> Brian N. Burridge
> Lead Internet Analyst
> Cox Target Media Corporate Web Sites
> Internet Technology Services
> (727) 399-3000 Ext 3515
> [EMAIL PROTECTED]
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to