title: How to pass data from selected rows using checkboxes from JSP to the server
body: <p>I'd like to know if there's any way to send data to the server for the selected rows using the checkboxes  I've put on those rows?  I mean , how can I send only the data of those selected rows to the server?</p>
  
  <p><img src="https://i.stack.imgur.com/G8huE.jpg" alt="alt text"></p>
  
  <p>Here's the html code I use:</p>
  
  <pre><code>&lt;table&gt;
    &lt;thead&gt;
      &lt;tr class="tableheader"&gt;
        &lt;td width="10%"&gt;&lt;/td&gt;
        &lt;td width="30%"&gt;Vehicle&lt;/td&gt;
        &lt;td width="40%"&gt;Driver&lt;/td&gt;
        &lt;td width="10%"&gt;Mileage&lt;/td&gt;
       &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;c:forEach items="${list}" var="item"&gt;
           &lt;tr&gt;
               &lt;td align="center"&gt;
                  &lt;input type="checkbox" name="selectedItems" 
                      value="c:out value="${item.numberPlate}"/&gt;"/&gt;
               &lt;/td&gt;
               &lt;td align="left"&gt;&lt;c:out value="${item.numberPlate}"/&gt;&lt;/td&gt;
               &lt;td align="left"&gt;&lt;c:out value="${item.driver.fullName}" /&gt;&lt;/td&gt;
               &lt;td align="left"&gt;&lt;input type="text" name="mileage" value="" /&gt;&lt;/td&gt;
            &lt;/tr&gt;
       &lt;/c:forEach&gt;                       
     &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>I really hope you can give some guidance on this.</p>
  
  <p>Thanks in beforehand.</p>