wood burning stoves
The moose likes Servlets and the fly likes checkbox in jsp!         urgent!!!!!!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "checkbox in jsp!         urgent!!!!!!!!" Watch "checkbox in jsp!         urgent!!!!!!!!" New topic

checkbox in jsp! urgent!!!!!!!!

Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi friends,
How do we check whether a checkbox( from html) is checked or not in jsp file. Urgent!!!
Tony Alicea

Joined: Jan 30, 2000
Posts: 3226
IF the checkbox is checked, the POST (or GET) name-value pair that will be returned is:

If it's not checked there will be nothing returned for the name "CheckBoxName". In a servlet, the parameter value will be null because it's not there... And it will be "ON" if checked.
[This message has been edited by Tony Alicea (edited August 24, 2000).]

Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
I agree. Here's the link: http://aspose.com/file-tools
subject: checkbox in jsp! urgent!!!!!!!!
jQuery in Action, 3rd edition