aspose file tools*
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
Author

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

Anonymous
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
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
IF the checkbox is checked, the POST (or GET) name-value pair that will be returned is:
CheckBoxName=ON
where
<INPUT TYPE="CHECKBOX" NAME="CheckBoxName">

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
 
Consider Paul's rocket mass heater.
 
subject: checkbox in jsp! urgent!!!!!!!!