title: Creating dynamic URL with 2 action parameters in Struts 2 using OGNL
body: <p>If I have a url: <code>www.myurl.com/books</code> and want to be able to create new <code>&lt;s:url&gt;</code> filtering on author and year: <code>www.myurl.com/books/Sartre/1942</code> by passing <code>Sartre</code> and <code>1942</code> as parameters to the action class which will render the books page with the appropriate results. How to do this in Struts2?</p>
  
  <p>I have the backend logic in place so it would be great if:</p>
  
  <ol>
  <li>I could reuse the same jsp and action class that the permalink
  <code>www.myurl.com/books</code> uses.</li>
  <li>Show the dynamically rendered URL <code>www.myurl.com/books/Sartre/1942</code>
  in the address bar even after the get request has loaded the page
  (not <code>www.myurl.com/books</code>, that is).</li>
  </ol>