Tell me if I understood your problem correctly.  

Your problem: If you set values of all 3 checkboxes to "Y", you don't really know 
which has been checked unless all three are checked or unchecked.

If yes, the simple answer is to set values of checkboxes differently.  So, when you 
read values using request.getParameterValues("checkBoxNames"), you will be able to 
tell which has been checked and which has been unchecked.

Hope this helps.

June


----- Original Message ----- 
From: "Shamshad Alam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 08, 2002 3:40 AM
Subject: Reading Check Boxes


> Dear All Hi-Tech-Minds
> I am using 3 checkboxes in an HTML form and initially all are checked with
> values "Y". A JSP page reads these values by using
> ' String Array[] = rquest.getParameterValues("Checks") '
> When all the checkboxes are checked the array contains 3 elements whose
> values are all "Y" .. But if any of the checkboxes in any order is
> UNCHECHED the array contains only those values which are checked and no
> value at all for the unchecked one. Is there any way to capture a
> different value of unchecked boxes in the same array?
> Looking forward to get your help.
> Thank you.
> --Shamshad Alam
> 
> 
> 
> ---------------------------------------------
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/
> 
> ===========================================================================
> 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
> 
��.a�h�g�ʋ�~��ɨh��&i�kz��m���j)rj(r����칻�&ޙ����b����ڽ�.��&�+an�r�('���H�
LDDI1h�ؠz�fj)m�X��ǫ�6�j˧r����[�ܬz�R<�SL2$Ңg�zW�j{E(����'��W��Ƨm��wZ�m��ڭ�b��#j���w(���)�z���f�m���j���w(��k�ۜ��㲟�j�m�Xm����
���j{h��'���������a���0����&����)�{�m�����)�׫r�


Reply via email to