title: Pass the details of Multiple rows from JSP to Servlet
body: <p>I have a List of Employees in my JSP file, and for each employee, I have provided an option to update the location(drop-down). The results are passed on to the "SaveTubeDetails" servlet, which takes care of saving the data. </p>
  
  <p>Here's the code I'm using currently:</p>
  
  <pre><code>&lt;form action="SaveTubeDetails" method="POST"&gt;
   &lt;table&gt;
   &lt;% 
     for(Iterator&lt;Employee&gt; itr = employeeArr.iterator(); itr.hasNext();){ 
     Employee emp= itr.next();
   %&gt; 
  
  &lt;tr&gt; 
    &lt;td&gt;
    &lt;select name="location"&gt;
    &lt;% for(int count=0; count&lt;locArr.size(); count++){ %&gt;     
    &lt;option value="&lt;%= locArr.get(count) %&gt;" &gt;&lt;%= locArr.get(count) %&gt;&lt;/option&gt;   
    &lt;%} %&gt;
    &lt;/select&gt;
    &lt;/td&gt; 
  &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>My Question is, how do I get it saved as a List of Employees which can be passed on to the Servlet? </p>
  
  <p><em>Note: i'm not using Spring and Hibernate. And I know that scriptlets shoudn't be used, but I'm left with no choice as I'm updating the existing code. And although there's only the Location details of Employee shown here, actually there are more columns like Age, DOB, etc.</em></p>