title: Initialize value of a checkbox from servlet
body: <p>I am woking on a Eclipse project in which in my JSP file I can add items. Each item has a status. To choose the status, I implemented a checkbox.</p>
  
  <p>When the checkbox is checked, I store the value 1 in my DB. </p>
  
  <p>I implemented the modification of an item and I would like to check (or not) my checkbox depending on the value stored in my DB.</p>
  
  <pre><code>&lt;input type="checkbox" name="status" value="active" &gt;active
  </code></pre>
  
  <p>How can I check the checkbox from my servlet in case the item in modification has a status = 1 ?</p>
  
  <p>Thank you !</p>