Nic Ferrier
Tapsell-Ferrier Ltd
www.tapsellferrier.co.uk
>>> Hans Bergsten <[EMAIL PROTECTED]> 3/31/99 2:09:59 AM >>>
>I can't find it now, but I believe it's also true that exact URL
mappings should
>be tested before directory mappings, and for multiple directory
mappings you should
>pick the one that most closely maps the URL, i.e. with
> - map a servlet X to "/"
> - map a servlet Y to ".html"
> - map a servlet Z to "/file.html"
> - map a servlet A to "/catalog"
> - map a servlet B to "/catalog/foo"
> - request "/file.html" should be served by Z
> - request "/foo.html" should be served by X
> - request "/catalog/foo/bar" should be served by B
This is a much better example than mine.
Unless what Hans says above is true (and I'm not sure it is
completely) I think that:
- request "/file.html" should be served by X
but that:
- request "/catalog/foo.bar" should be served by B
Therefore directory always has precedence over file extension, even
though file extension may be more accurate.
>It would be nice if James Davidson can confirm this.
Yes please James.
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html