> Select one color:<br>
> <input type="checkbox" name="color" value="blue> Blue<br>
> <input type="checkbox" name="color" value="red"> Red<br>
> <input type="checkbox" name="color" value="white"> White<br>
>
> So I don't know how to get all the values checked in the JSP file which
> will recieve this information.
> I tried something like this:
> String[] colorChoosen = request.getParameter("color");
using request.getParameterValues("color") should return the returned choices (for
example, ["blue", "white"]). request.getParameter("color") will return the first
element in the array. Either way, if none are chosen you'll get NULL.
Lance Lavandowska
www.Brainopolis.com
==========================================================================To
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com