tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat mapping of URLs -> servlets
Date Wed, 03 Dec 2008 15:05:29 GMT
André Warnier wrote:
> Then I guess I have (at least) 2 webapps : a "/foo" webapp, and a
> "/foo/bar" webapp.
> 
> Now a request comes in with the url "/foo/bar/baz/various.jsp"
> 
> How does Tomcat determine that /foo/bar/baz is not itself a webapp, but
> merely a sub-dir of webapp "/foo/bar" ?

The longest context path always wins. So in this case any request to
/foo/bar/... will always be handled by the /foo/bar webapp.

Mark


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message