Klaus Sonnenleiter
At 08:49 AM 5/11/2001 -0400, Hawkins, Keith (Keith) wrote:
Is it possible for a servlet to serve a URL with a context name different than the webapps directory name that it is in?
For example, can I have a servlet handle requests for http://SomeHost/SomeContext yet place the servlet code in<TOMCAT_HOME>/webapps/ADifferentDirectory
What I am really after is the ability for servlets deployed in two separate webapps directories to share portions of the same context.
So that requests to http://SameHost/SameContext/ItemA are handled by a servlet deployed in webapps/ServletA while requests to http://SameHost/SameContext/ItemB are handled by servlet deployed in webapps/SevletB
Is this possible?
It does not seem so reading the chapter 10 of the ServletSpecification Version 2.2 but I wanted to make sure I was not misreading it.
Thanks,
Keith