It's not a secret anymore!
The moose likes Servlets and the fly likes Runtime URL mapping Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Runtime URL mapping" Watch "Runtime URL mapping" New topic

Runtime URL mapping

Gobiraj Vadivelrajan

Joined: Dec 10, 2001
Posts: 29
I like to know whether I can add servlet URL mapping at runtime.

For e.g. Based on some environment variables I like to set the URL mapping to be different

For e.g If the environment is dev then I have mapping for a servlet like


For qa I will have /context/qa .

I don't want to set this in
web.xml as I like to have the same web.xml in all environments

I agree. Here's the link:
subject: Runtime URL mapping
It's not a secret anymore!