On Thu, 24 Oct 2002, François Vallet wrote:

> Date: Thu, 24 Oct 2002 14:30:31 +0200
> From: François Vallet <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: [DEFAULT] Override the Default Servlet
>
> Hello !
> I have my own Default Servlet for my a web app !
> But tomcat has his own default Servlet as well! (/Tomcat/conf)
> And tomcat doesn't like that I override the default servlet in my Web.xml
> Do you know how we override the tomcat Default Servlet ?
> Thanks in advance
>

Define a <servlet-mapping> element in your web.xml file with a URL pattern
of "/".  This will override the default servlet mapping provided by
Tomcat.

NOTE - the default servlet in Tomcat serves static resources, so when you
replace this mapping you'll need to ensure that your app doesn't use any,
or it serves these resources itself.

>  F.

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to