Nic Ferrier wrote:
> >>> "Craig R. McClanahan" <[EMAIL PROTECTED]> 3/31/99 7:51:03
> AM >>>
> The rules that make the most sense to me are:
> * "Longest prefix" match (except for "/"); else
> * Extension match (which cannot include extra path info); else
> * "/" match (i.e. the default servlet) if nothing else matches
> without any special cases for exact pathname matching.
>
> I think the easiest to implement (the one Paperclips uses) is
> Extension match, ie: checking that the period is not followed by a /.
>
> I don't think the standards going to be much use here,
>
> Nic
>
This kind of rule still gets messed up if you allow extra path information AND
the extra path information might have periods in it. For example, assume a
mapping from ".html" to a servlet, as we have been discussing:
/file.html --> HTML processing servlet -- no problem
/file.html/extra/path/info --> HTML processing servlet by your rule
/file.html/extra.path.info --> ???
This is the kind of thing that prompted my question on how you identify exact
path matches versus directory matches.
Craig McClanahan
___________________________________________________________________________
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