> -----Original Message-----
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Monday, October 27, 2003 9:47 AM
> To: Tomcat Users List
> Subject: RE: Map all URL to one servlet
> 
> 
> 
> Howdy,
> 
> >local values in WEB-INF/web.xml that 'match' values in conf/web.xml, 
> >will always takes precedence (as stated in the spec).  And the *.jsp
> 
> Be careful where you tread: the spec doesn't mention anything 
> about conf/web.xml, or a web.xml hierarchy.  This is a 
> tomcat-specific concern.
> 
> Yoav Shapira

 
conf/web.xml is (I'm guessing) how Tomcat provides the implicit mapping
for *.jsp, as required by spec. The spec also allows containers to make
other implicit mappings available (/servlet comes to mind).  The spec
requires that implicit mappings override implicit ones.
 
SRV.11.2.1 Implicit Mappings.

If the container has an internal JSP container, the *.jsp extension is
mapped to it, allowing JSP pages to be executed on demand. This mapping
is termed an implicit mapping. If a *.jsp mapping is defined by the web
application, its mapping takes precedence over the implicit mapping. A
servlet container is allowed to make other implicit mappings as long as
explicit mappings take precedence.
 
 
>From Tomcat's conf/web.xml doc comment:
<!-- This document defines default values for *all* web applications -->

<!-- loaded into this instance of Tomcat.  As each application is
-->
<!-- deployed, this file is processed, followed by the             -->
<!-- "/WEB-INF/web.xml" deployment descriptor from your own
-->
<!-- applications.
-->
 
 
So is this not the mechanism that Tomcat uses to provide the behaviour
defined in the spec?  I admit I was sloppy in my usage of "as stated in
spec".  The *behaviour* was stated in the spec, while never mentioning
the implementation of that behaviour ;)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to