Hi Matt,
Use of web.xml is mandated by the Servlet 2.2 spec, so there
isn't supposed to be a way to do what you want. However,you are
welcome to try customizing org.apache.tomcat.facade.WebXmlReader
to make a choice somehow.
Cheers,
Larry
> -----Original Message-----
> From: Matt Small [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 10, 2001 2:11 PM
> To: Tomcat (E-mail)
> Subject: Two contexts sharing one WebApp
>
>
>
> I have my tomcat server set up with two contexts that share
> the same web-app
> directory. I want to specify a different web.xml in each
> context though so
> that different servlets are available from each context. Is
> there any way to
> specify the web.xml file name or path from the context
> definition? I am
> hoping that there is just a simple config line for this. I
> know I get the
> behavior I want by building my code into two different
> web-apps, but I want
> to keep my build file simple. I am using Tomcat 3.3 beta 2.
>
> Thanks,
> Matt
>