Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSP Checkboxes

843840Oct 23 2002 — edited May 22 2003
Hi. 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2003
Added on Oct 23 2002
7 comments
683 views