title: struts checkbox problem
body: <p>i have some checkbox in my jsp page. there are some othe textfields in the jsp page. i can populate the value of textboxs from database. like for name field i can fetch the value 'myname' from database and show it in jsp page. but i can't fetch the value of the checkbox  from database. like i have a field agriculture in my database and in jsp page. now i want if the value of agriculture in database is 1 then the checkbox of agriculture in jsp page will be 1 also. and if the value is 0 then the checkbox will be unchecked. how can i do it. please help. this is the code fragment oof my jsp page.</p>
  
  <pre><code>    &lt;td&gt;&lt;label class="desc"&gt; Agriculture&lt;/label&gt;&lt;/td&gt;
                      &lt;td&gt;                                
                              &lt;html:text property="loanPurposeCodeInfoDTO.agriculture" styleClass="SingleLineTextField" size="30" tabindex="1"  &gt;&lt;/html:text&gt;
              &lt;html:checkbox styleId="checkbox_isall" property="loanPurposeCodeInfoDTO.agriculture" &gt;&lt;/html:checkbox&gt;
                      &lt;/td&gt;
  </code></pre>