title: Struts2: Hidden field and anchor tag <s:a> values In Action Class
body: <p>I am working on a struts2 application. In my jsp page I have 2-3 anchor tag and 2-3 hidden fields like </p>
  
  <pre><code>&lt;s:a href="#"&gt;File 1&lt;/s:a&gt;
  &lt;s:a href="#"&gt;File 2&lt;/s:a&gt;
  &lt;s:a href="#"&gt;File 3&lt;/s:a&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;s:hidden name=" hidden1" /&gt;
  &lt;s:hidden name=" hidden2" /&gt;
  &lt;s:hidden name=" hidden3" /&gt;
  </code></pre>
  
  <p>Now please let me know, In my action class how can I get value of all the hidden fields and anchor tag which was clicked.</p>
  
  <p>I had tried following</p>
  
  <pre><code>&lt;s:a href="#" action=”someAction”&gt;File 1&lt;/s:a&gt;
  </code></pre>
  
  <p>Its working but didn’t transfer value of hidden fileds.
  Also</p>
  
  <pre><code>&lt;s:a href="#" name=”File1” onclick=”submit”&gt;File 1&lt;/s:a&gt;
  </code></pre>
  
  <p>But no gain.</p>
  
  <p>Looking for your reply.</p>