title: How I can send parameter to a JSP servlet with a c:forEach form?
body: <p>I have a problem mixing JSP Servlet and c:forEach form...
  The problem is that whatever my id is, the HTML form will always send the first in the list, refered to ' name="id" '.
  Is there a solution maybe to get several name="id1", name="id2" ...etc in order to get the good one ?</p>
  
  <p>Here is the code.</p>
  
  <p></p>
  
  <pre><code>    &lt;div id="client-table"&gt;
          &lt;form action="gestion-commandes" method="POST"&gt;
  
              &lt;table class="table table-striped"&gt;
                  &lt;thead class="thead-custom"&gt;
                      &lt;tr&gt;
                          &lt;th scope="col"&gt;#&lt;/th&gt;
                          &lt;th scope="col"&gt;NOM&lt;/th&gt;
                          &lt;th scope="col"&gt;PRENOM&lt;/th&gt;
                          &lt;th scope="col"&gt;EMAIL&lt;/th&gt;
                          &lt;th scope="col"&gt;TEL&lt;/th&gt;
                          &lt;th scope="col"&gt;COMMANDES&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody class="tbody-custom"&gt;
  
                      &lt;c:forEach items="${clients}" var="client"&gt;
                          &lt;tr&gt;
                              &lt;th scope="col"&gt;${client.id}&lt;input name="id" value="${client.id}" hidden = "true"&gt;&lt;/th&gt;
                              &lt;th scope="col"&gt;${client.nom}&lt;/th&gt;
                              &lt;th scope="col"&gt;${client.prenom}&lt;/th&gt;
                              &lt;th scope="col"&gt;${client.email}&lt;/th&gt;
                              &lt;th scope="col"&gt;${client.tel}&lt;/th&gt;
                              &lt;th scope="col"&gt;&lt;button type="submit"&gt;Commandes&lt;/button&gt;
                              &lt;/th&gt;
                          &lt;/tr&gt;
                      &lt;/c:forEach&gt;
                  &lt;/tbody&gt;                
              &lt;/table&gt;
  
          &lt;/form&gt;
      &lt;/div&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>Thank you in advance,
  Joss</p>