title: How can i send a hidden value to action class using Struts2
body: <p>I need to send a value to action class when a click on a link. This is my code:</p>
  
  <pre><code>&lt;s:iterator value="results" var = "item"&gt;   
     &lt;li&gt;&lt;pre&gt;
         &lt;a href="&lt;s:url action="getCompanies"/&gt;" class="selectable"&gt;&lt;b&gt;&lt;/b&gt;&lt;s:property value="%{#item.getGroupName()}"/&gt; (&lt;span class="count"&gt;&lt;s:property value="%{#item.getNrCompanies()}"/&gt;&lt;/span&gt;)&lt;s:hidden value="%#item.getGroupId()}" name="GroupId" id="GroupId" /&gt;&lt;/a&gt;
     &lt;/pre&gt;&lt;/li&gt;
  &lt;/s:iterator&gt; 
  </code></pre>
  
  <p>I need to be sent back  <strong>%#item.getGroupId()}</strong> depending on the option I choose from iterator.</p>
  
  <pre><code>&lt;s:hidden value="%#item.getGroupId()}" name="GroupId" id="GroupId" /&gt;
  </code></pre>
  
  <p>I have the getter and setter for Group Id but it's does't reach action class.</p>
  
  <p>Thank you </p>