tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
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.


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message