There is a checkbox in my jsp page
<input type="checkbox" name="myCheck" id="myCheck">
I am submitting the form and on server side,I am trying to retrieve it using
request.getParameter("myCheck");
If I have checked the checkbox,it is coming in request as true else it is not present in request object.
My Requirement is that It should also come as false if I have not checked it. Any suggestion?
UPDATE
I am using GET method and yes it is present in the form which I am submitting.
Aucun commentaire:
Enregistrer un commentaire