title: passing parameters to urls in struts2?
body: <p>I am working with a struts2 project and i need to pass parameters through url... this is the code that i have written</p>
  
  <pre><code>&lt;s:url action="submit/CalculatePoints" includeParams="get" var="playerX" &gt;
      &lt;s:param name="winnerNo" value="player2"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>it was refernced by following code</p>
  
  <pre><code>&lt;a href="&lt;s:property value="#playerX" /&gt;"&gt;
  </code></pre>
  
  <p>I expected that the markup for the link be</p>
  
  <p><code>submit/CalculatePoints?winnerNo=palyer2</code> </p>
  
  <p>However iam not getting the querystring part. also attribute winnerNo in the action class is not getting populated as it should be according to <a href="https://stackoverflow.com/questions/4478147/how-to-access-url-parameters-in-struts2">How to access url parameters in struts2</a></p>
  
  <p>Please tell me where i am going wrong?</p>