Hi,
  Try with below java script code. Call a java script function b4 u submit the form 
and there u can set the check box values.
/*
for(var i=0;i<4;i++){
          if(document.form.elements[i].checked==true)
               document.form.elements[i].value="Y";
         else {
                 document.form.elements[i].checked=true
                 document.form.elements[i].value="N";
        }
}
*/

  Shamshad Alam <[EMAIL PROTECTED]> wrote: 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


---------------------------------
Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access

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

Reply via email to