I have noticed that SO generates its url very nicely, let's say when creating a question, the url is like this http://stackoverflow.com/questions/ask
or when viewing a question http://stackoverflow.com/questions/QUESTIONNUM/some-question-title
How does Stackoverflow implements such elegant urls, it does not have any query strings in its url, even though without query strings it can still identify what page, or what question number is being accessed. I want to implement such url in my application.
My question how do you implement this in an application? I am using Apache Tomcat and Struts2.