title: How to send data from JSP to Action with <s:a> in Struts2?
body: <p>I want to achieve that clicking the title, the matching id is sent to the Action, but id in the Action is always zero.</p>
  
  <p>The Action uses the id to search the matching record in database and show in another jsp.</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;s:iterator id="n" value="news"&gt;
  &lt;tr&gt;
      &lt;td&gt;
      &lt;s:url action="GETNEWS" var="getNews"&gt;
          &lt;s:a href="%{getNews}"&gt;
              &lt;s:property value="#n.title" /&gt;
              &lt;s:hidden name="id" value="#n.id" /&gt;
          &lt;/s:a&gt;
      &lt;/s:url&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/s:iterator&gt;
  </code></pre>