I am trying to check/uncheck my checkbox field in JSP,based on the values stored in my db.The code snippet for jsp is:
<div class="form-group t-margin-top-10">
<label for="defaultContact" class="col-md-5 col-lg-4 control-label"></label>
<div class="col-lg-4 ">
<input type="checkbox" id="defaultContact${billingContactDto.billingContactId}" name="defaultContact" /> Default Contact</div>
This is not showing default checked value (checked in this case). billingContactDto is contacts object, billingContactId is PK in billingContact object. billingContact.defaultContact is a string in billingContact(not shown here)
The question is how to fetch values of checkbox from db. Thanks in advance