title: URL Rewriting in struts2
body: <p>In my site I am showing games in one jsp page. I am passing game id from one jsp</p>
  
  <pre><code>   &lt;a href="playgame?id=&lt;s:property value="id"/&gt;"&gt;
  </code></pre>
  
  <p>after fetching game from action it is showing following url in address bar</p>
  
  <pre><code>mysite.com/playgame?id=tskaqnrg9p
  </code></pre>
  
  <p>I want to display url with game name as follows</p>
  
  <pre><code>mysite.com/playgame/gamename
  </code></pre>
  
  <p>How to do it</p>
  
  <p>I am using struts2 framework</p>