> On Wed, 3 Oct 2001, Craig R. McClanahan wrote:
>
> > Originally (back in the pre-3.2-final days), Tomcat did the equivalent
of
> > a RequestDispatcher.forward() to display welcome pages.  This caused
> > massive problems for people who didn't understand the difference
between:
> >
> >   http://foo.bar/webapp
> >
> > and
> >
> >   http://foo.bar/webapp/
> >
> > In the former case, any relative urls on the "real" welcome page are
> > broken.  This caused bug reports about welcome files not working (never
> > mind that using a <base> element in your welcome page would have fixed
> > it), which led to the current behavior.
>
> Assuming I want this behaviour and I know the difference, is there a
> preferred mechanism to replace this line in DefaultServlet.java?
>
>
>                 redirectPath = appendParameters(request, redirectPath);
> --              response.sendRedirect(redirectPath);
>                 return;

Also, not doing the redirect would create lots of problems with nested
welcome pages (foo/index.html is a valid welcome page).

Remy

Reply via email to