How to configure web.xml for a servlet with dynamic URL?
843842Sep 23 2008 — edited Sep 23 2008Hi, all.
Does any one know how to configure <servlet-mapping> for dynamic URLs?
For example, I wish to have a single servlet handle requests with URLs like
- www.myapp.com/user0/servlet?...
- www.myapp.com/user1/servlet?...
where "user0, user1" are user IDs and "servlet" refers to the single servlet.
And, hopefully, I can hide the web app's context name.
Is this possible with servlets and web.xml?
If so, it would be a great help to let me know of it.
Thanks in advance.
Edited by: mjkhan21 on Sep 22, 2008 11:59 PM