title: passing an html table to servlet from a jsp page
body: <p>I have html table in jsp page the loads data from database dynamically then I wan to save all data in the table into database through servlet.
  now my problem is i am having a jsp page which display a table of data from a servlet with checkbox in it, i have to send that checked contents to the servlet for updating to the database, how to do that. </p>
  
  <p>thanks in advance and this is my table</p>
  
  <pre><code>&lt;form action="showKwh" method="POST"&gt;
  
      &lt;input type="submit" value="show"/&gt;
  
      &lt;table id="adminTable" class="detailsTable"&gt;
  
          &lt;tr class="header"&gt;
              &lt;th colspan="4"&gt;Kilowat Entry&lt;/th&gt;
          &lt;/tr&gt;
  
          &lt;tr class="tableHeading"&gt;
              &lt;td&gt;&lt;/td&gt;
              &lt;td&gt;customer id&lt;/td&gt;
              &lt;td&gt;name&lt;/td&gt;
  
              &lt;td&gt;group&lt;/td&gt;
              &lt;td&gt;kwh&lt;/td&gt;
  
  
  
              &lt;td&gt;kwd&lt;/td&gt;
  
          &lt;/tr&gt;
  
          &lt;c:forEach  var="cust" items="${customerKwh}" varStatus="iter"&gt;
              &lt;tr id="${cust.id}" class="${((iter.index % 2) == 1) ? 'lightBlue' : 'white'} tableRow"&gt;
                  &lt;td&gt;&lt;input type="checkbox" name="check1" class="checker" value="ON" /&gt;&lt;/td&gt;
                  &lt;td id="id?${customer.id}"&gt;${cust.id}&lt;/td&gt;
                  &lt;td &gt;${cust.name}&lt;/td&gt;
                  &lt;td &gt;${cust.type}&lt;/td&gt;
  
                  &lt;td &gt;${cust.kwh}&lt;/td&gt;
  
  
  
                  &lt;td&gt;&lt;input type="text" name="txt" size="8" id="kwd${cust.id}" value="${param.value}" class="name1"  /&gt;&lt;/td&gt;
  
              &lt;/tr&gt;
          &lt;/c:forEach&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>