title: Submit form from a link with param
body: <p><br>
  I'm trying and searching now for days and can't find an answer.<br>
  My problem is this: I use a Hyperlink and Javascript to submit a form, but I also need to submit a parameter with the link. The code looks like this:</p>
  
  <pre><code>&lt;form action="Action.jsp" method="post" id="form-id"&gt;
    &lt;input .../&gt;
    ...
    &lt;c:forEach items="${items}" var="item" varStatus="vs"&gt;
      &lt;a href="Action.jsp?id=${vs.count}" 
         onclick="javascript:document.forms['form-id'].submit(); return false"&gt;
         ${vs.count}
      &lt;/a&gt;
    &lt;/c:forEach&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>If I leave away the <code>return false</code> the param id is transferred but the other <code>&lt;input .../&gt;</code> parameters not and vice versa. How you see I can't use a <code>&lt;input type="hidden" .../&gt;</code> param, because I need only the param of the link.</p>
  
  <p>If you please could help me, I would be grateful....</p>