On Fri, 17 Aug 2001, Cyril Bouteille wrote:

> Craig,
> 
> > > I'm confused as to why I should not modify that file. Do you mean tomcat
> > > "includes" the $CATALINA_HOME/conf/web.xml by default and I don't need
> > > to redefine the standard servlets in my WEB-INF/web.xml?
> > Yes.  $CATALINA_HOME/conf/web.xml is included in *all* webapps by default,
> > because it defines the basic services (like JSP, default file serving, and
> > MIME mappings) that are defaults for all apps.
> 
> Ok, that was it. I removed the default mappings from my web.xml and it
> works. Thank you!
> 
> So what if the default mappings in $CATALINA_HOME/conf/web.xml are not
> the ones you want? 
> For example, what if you want to map *.jsp to a controller servlet
> instead of the JspServlet?
> Should I modify the $CATALINA_HOME/conf/web.xml or can I override the
> *.jsp mapping in my webapp/WEB-INF/web.xml?

Yes ... if you want to change the defaults for all webapps, this is the
place to do it.  Tomcat 3.1 users will remember that it worked the same
way.  3.2 removed it (not my doing :-), but 4.0 restores this convenient
feature.

> 
> Thanks,

Craig


Reply via email to