> > Remy Maucherat wrote:
> > > You can, but I don't think we can fix it.
> > > Some path manupulation opertaions are extremely tricky,
> > > because the servlet
> > > itself doesn't have a way to know how it's mapped.
> > >
> >
> > Isn't the fix below a valid fix (and more general):
> 
> That should return the path relative to the context root. If 
> the servlet
> isn't mapped as the root servlet in the context, I don't 
> think it would
> work.

In my case WebDAV is mapped several directories down in a
non-root servlet and it seems to work just fine.

> 
> IMO, the main problem is still that the servlet has no way to 
> know how it is
> mapped.

I'm sure you understand the issues much better than
I do.  I was just hoping that the mapping which I did,
which might be commonly useful, would be handled by
the code fix (along with the more normal cases).  All
I can say is that this seems to work for all my situations.

> 
> > > > but to see if I could get the
> > > > correct behavior I changed the line
> > > >    String path = getRelativePath(request);
> > > > to
> > > >    String path = request.getRequestURI().substring(
> > > >        request.getContextPath().length());
> 
> Remy
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to