title: List iteration - User selected value to pass to servlet
body: <p>I have a list of values and a text box for every value in the list. User will enter value in any of the textbox. I want to pass that value to the servlet..i am not sure how to do it..</p>
  
  <p>Consider a list has 10 names..</p>
  
  <pre><code>&lt;form action="servlet1" method="post"&gt;
  &lt;%List names = new ArrayList();
  for(int i=0; i&lt;names.size();i++)
  {
   out.println(names.get(i));%&gt; &lt;input type="text" name="text1"&gt;
  &lt;input type="submit" value="uvalue"&gt;
  &lt;%} %&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If the user enters a value in text box, how can i pass the names.get(i) value to the servlet to which user has entered the value...</p>