Creating dynamic URL with 2 action parameters in Struts 2 using OGNL [duplicate]
This question already has an answer here: Passing parameters in URL without query string in Struts 2 2 answers If I have a url: www.myurl.com/books and want to be able to create new <s:url> filtering on author and year: www.myurl.com/books/Sartre/1942 by passing Sartre and 1942 as parameters to the action class which will render the books page with the appropriate results. How to do this in Struts2? I have the backend logic in place so it would be great if: I could reuse the same jsp and action class that the permalink www.myurl.com/books uses. Show the dynamically rendered URL www.myurl.com