Hi friends, How do we check whether a checkbox( from html) is checked or not in jsp file. Urgent!!!
posted 16 years ago
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