I want to be able to have URLs going to servlets like http://host/Servlet/1 rather than http://host/Servlet?ID=1
Any suggestions for how this can be accomplished? Preferably with multiple levels too, so I could do something like http://host/Servlet/1/Files
Thanks
The HttpServletRequest exposes a method, getPathInfo(), which gives you information about the request URL after the servlet path itself. You could map your servlet to /Servlet/* and then get the ID with getPathInfo().