io facevo così
if (w_DatiSedi[7].equals("S"))
out.print("<input type=\"checkbox\" name=\"C1\" value=\"ON\">" )

Ciauz