> 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.

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

> > > 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]>

Reply via email to