John, By defining your application as two context in the server.xml file you are instructing tomcat to treat them as individual web-applications. This is how Context have been defined. Every context is a web-application by itself. You can however define a URL mapping to a Router Servlet that will route the request to "stats" and "stats001" and disallow other paths to enter.
So if you have http://www.xyz.com/stats/abc/abc123.jsp http://www.xyz.com/stats001/abc/abc123.jsp Both request will be routed to the Servlet and you can suitable redirect them to the corresponding page. If there's any processing that needs to be done based on what path the request comes from, this approach would be useful. Anand -----Original Message----- From: john woo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 26, 2001 3:38 PM To: [EMAIL PROTECTED] Subject: context path aliasing I have a web application that needs to be accessed via two different "paths". For example: http://www.xyz.com/stats http://www.xyz.com/stats2001 So, I'd like to have that web application associated with the paths "stats" as well as "stats2001". This can be done via two separate <Context> elements in server.xml. For example: <Context path="stats" docBase="stats2001" .../> <Context path="stats2001" docBase="stats2001" .../> The problem though is that two web-applications are then started. I'd like to have only one. Possible? __________________________________________________ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>