use String[] whatToDo = request.getParameters("action");

multiple checkbaoxes return multiple parameters

-----Original Message-----
From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: getting paramater names from checkboxes


Hi, I have a problem in handling values of checkboxes.
If I write for exampple
<input type=submit name=action value=delete>
and then on some other page
String whatToDo = request.getParameter("action");
then everything is OK, in whatToDo is the value DELETE.
But If I have
<input type=chceckbox name=select value=a>
<input type=chceckbox name=select value=b>
<input type=chceckbox name=select value=c>
How could I get all the values of the selected checboxes?

Thank you,
Martin.

===========================================================================
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://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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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