if you are going to submit the form, then you can use request.getParameters() to retrieve the checked checkbox values