vendredi 4 septembre 2015

How to know if checkbox is ticked in a servlet

I have a checkbox in my jsp page as the following :

<div class="col-lg-8 ">
    <label><input type="checkbox" name="approver" id="ck2" value="Approver">     Approver</label><hr/>                                                                                                                                                   
</div>

In my servlet I want to know if the value of the checkbox is checked or no. I have tried looking at the other threads but they don't seem to be working for me. Any help much appreciated!




Aucun commentaire:

Enregistrer un commentaire