I want that when user hits following URL:
http://host:8080/AppName/ServletName/Param1/Param2
It should go to a servlet named ServletName and Param1 and Param2 become request parameters. I have seen these kind of urls in ruby projects. Is it possible in Java?
Yes, you can do something like that with a servlet. You need to set the servlet mapping in web.xml like this:
to get all requests and in the servlet you need to parse the result of
HttpServletRequest.getPathInfo().