Sorry. but i dint frame my question right, and hence the confusion. My requirement is simple.Let me explain with an example.
Consider a property classifieds site. A user who wants to view the properties in london currently browsing through the site clicks on the corresponding link (first for country and then for city). The page url looks something like this : http://mydomain/list.jsp?country=uk&city=london.
Now what i intend to do. I want the visitor to view the same listing as above by typing the city and country in the url. i.e. http://mydomain/uk/london/
1.) The 'servlet-mapping' entries in the deployment descriptor. The best place to go for information on these is the servlet spec.
2.) The 'front controller' or command pattern. There are several conversations going on regarding this front controllers in this forum right now.
In a nutshell, you can create a servlet mapping that traps any requests with a given pattern (Struts filters on the ".do" extension) and routes the request to your front controller. From there, your front controller can analyze the URL (using the HttpServletRequest object) and forward the request to whatever command object you like.