wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: http://aspose.com/file-tools
subject: Runtime URL mapping
Similar Threads
about web.xml file.
question on servlet-mapping
Servlet to open a pdf
how to connect Jsp to servlet to process parameters