File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Runtime URL mapping
Joined: Dec 10, 2001
Sep 01, 2004 11:47:00
I like to know whether I can add
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
<servlet-mapping> <servlet-name>MyServlet</servlet-name> <url-pattern>/dev</url-pattern> </servlet-mapping>
For qa I will have /context/qa .
<servlet-mapping> <servlet-name>MyServlet</servlet-name> <url-pattern>/qa</url-pattern> </servlet-mapping>
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
about web.xml file.
question on servlet-mapping
Servlet to open a pdf
how to connect Jsp to servlet to process parameters
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015