I don't like the way checkboxes work either.
In most cases I put the real value (0 or 1) in a hidden field and use the
onclick event of the checkbox to change the value of the hidden field. See
what I mean?
Geert 'Darling' Van Damme
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Pillai, Arumugam
> Sent: dinsdag 16 mei 2000 22:55
> To: [EMAIL PROTECTED]
> Subject: CHECK-BOX
>
>
> Hi there,
>
> When i call
>
> request.getParameterValues("chkbox")
> and if no chkbox is selected, its throwing a
> java.lang.NullPointerException
> error.How should i handle this.
> Thanks in advance.
>
> ==================================================================
> =========
> 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