> but I will have many checkbox in the future. Also since the name/value
> pair isn't sent it the checkbox is empty is puzzling me as well

Perhaps this doesn't address the rest of your issue (frankly, I couldn't
determine your problem from your email), but the way we handle checkboxes
is to add a hidden field with the same name as the checkbox, but set its
value to false (checkboxes always have a value of "true" for us).  Then,
we use request.getParameterValues("myCheckBox") and take the 0th item in
the returned array: this will equal "true" if the box was checked, "false"
otherwise.

Lance

===========================================================================
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