> 10.07.2001 09:23:16, "Remy Maucherat" <[EMAIL PROTECTED]> wrote:
> >> whoa.
> >> forget that one for now... it's broken.
> >> I'm looking into it.
> >>
> >> 10.07.2001 08:53:34, Christopher Lenz <[EMAIL PROTECTED]> wrote:
> >> >howdy,
> >> >
> >> >quick patch:
> >> >add the servlet-path to HTML links generated when browsing
> >> >directories. otherwise the links point into oblivion if the
> >> >WebdavServlet isn't mapped to the root of the context.
> >
> >Yes, you're right.
> >I copied code from Catalina's default servlet, and it's designed for
> >a servlet mapped as the root only. The links are incorrect for any
> >other mapping.
> >
> >Remy
> >
>
> yeah. now how'd you get the servlet path in a nice and efficient way,
> correctly handling the case that the servlet is mapped as default
> servlet (in which case HttpServletRequest.getServletPath() returns
> what would normally be the path info of the request) ?? ugh.
> </sorry-basic-servlet-api-question>

Unfortunately, I couldn't find any 100% reliable way to do it, and that's
why the WebDAV servlet mapping supported is when it's mapped as root ("/*")
or default ("/") ...

One workaround would be to specify the servlet path as a parameter to the
WebDAV servlet (and if none is specified assume it's been mapped as root.

Remy

Reply via email to