Checkbox issue
Actually i want to read the database value for the checkbox and then want to display in a table if the checkbox is checked or unchecked,but wheni am giving this syntax if the condition is "on" then it is displaying the box with a tick otherwise it is not showing the box and the rest of the table.
It is an urgent issue for me,i will be very greatful if someone can help me on this.the syntax is:
<td style="border-right:solid 1px black;border-top: black 1px solid" width="5%">
<% if(inputsm1.equals("on"))
{
%>
<input type="checkbox" checked name="inputsm1"></td>
<% }
else {
%>
<input type="checkbox" name="inputsm1"></td>
<%} %>

