title: how get checkbox values in jsp
body: <p>hi i want to get book names from database in  jsp page i am getting all book names but my requirment is i want to update selected books by checkbox so how can i get only selected books in next page...</p>
  
  <p>here is my jsp code...Thanks in advance.</p>
  
  <pre><code>&lt;form action="book1.jsp" name="f1"&gt;
      &lt;table border="1" align="center"&gt;
          &lt;caption&gt;Select Book for Update&lt;/caption&gt;
          &lt;%  
              while(rs.next())
              {
           %&gt;
          &lt;tr&gt;
              &lt;th colspan="2"&gt;Book name&lt;/th&gt;           
              &lt;td&gt;&lt;%= rs.getString("bookname") %&gt;&lt;/td&gt;
              &lt;td&gt; &lt;input type="checkbox" value="${row.id}" name="b1"/&gt; &lt;/td&gt;
          &lt;% } %&gt;
          &lt;/tr&gt;       
          &lt;tr&gt;
              &lt;td colspan="3"&gt;&lt;input type="submit" value="Update" &gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;        
  </code></pre>
  
  <p></p>