my dog learned polymorphism
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

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: 3222
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
Have you checked out Aspose?
subject: checkbox in jsp! urgent!!!!!!!!
It's not a secret anymore!