JSP Checkboxes
843840Oct 23 2002 — edited May 22 2003Hi. I am using JSP and html. I am trying to see if a checkbox is checked or unchecked. I use the Request.getParameter(name) to get the value (checked or unchecked). From what I have read, I believe that it will return the value of the checkbox if it is checked and it will return null if the checkbox is unchecked. When I print out the values, It is printing out null for every checkbox regardless of if it is checked or not. I dont know if this has something to do with the way I am creating the checkbox or getting the value. Please help.
This is how I create the checkbox:
<tr><td><form name='COMMENTSFORM' method='post' action=''> <div align='center'> <input type='checkbox' name='21' value='checkbox'></div></form></td></tr>
I would greatly appreciate any help.
Tiffany