This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Runtime URL mapping
It's not a secret anymore!