Why would it convert the period to a slash? Shouldn't it be:
getServletPath -> /foo/bar.thtml
getPathInfo -> null
(*Chris*)
----- Original Message -----
From: Hans Bergsten <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 01, 1999 5:59 PM
Subject: Re: Servlet Engine Question
> Gabriel Wong wrote:
> >
> > Folks,
> >
> > Should request.getServletPath() return only the servlet name
> > (mypackage.myservlet) or servlet preceded by any path alias
> > (/mypathalias/mypackage.myservlet) ?
>
> Neither. It should return the part of the URI path used to identify
> the servlet. So if you have a mapping of the URI path
> /catalog=catalogServlet
> a request like /catalog/foo/bar should give the following strings
> to the servlet:
> getServletPath -> /catalog
> getPathInfo -> /foo/bar
>
> There's been a lot of discussions about what to return for servlets
> mapped to file name extensions on the "expert" list, but the winning
> proposal is this: if you have a mapping
> .thtml=templateServlet
> a request like /foo/bar.thtml should give the following strings
> getServletPath -> /foo/bar/thtml
> getPathInfo -> null
>
> All of this will most likely be clarified in the next revision of
> the spec.
>
> --
> Hans Bergsten [EMAIL PROTECTED]
> Gefion Software http://www.gefionsoftware.com
>
>
___________________________________________________________________________
> 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
>
___________________________________________________________________________
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