HI,
I have a jsp page with 2-3 check boxes, I get the object from the database which returns a boolean, How do I use that to set the checkbox
I am able to set the value but not the check box itself, how do i set it so that it is visible as checked on the jsp page.(depending on the value from db)
thanks
I have a jsp page with 2-3 check boxes, I get the object from the database which returns a boolean, How do I use that to set the checkbox
Code:
<html:checkbox property="Supplies" value='<%= obj.getUnmeteredTO().getSupplies() ? "true" : "false" %>'/> -- Supplies<br/>
I am able to set the value but not the check box itself, how do i set it so that it is visible as checked on the jsp page.(depending on the value from db)
thanks