> Remy Maucherat wrote:
> > > Tomcat 4 will return a 302 (temporary redirect) pointing to
> > > /news/path_of_the_welcome_file.
> > > The thing is I don't know if I should include the query parameters in
the
> > > Location header (which is not something I'm doing right now).
> >
> > Ok, it's a bug. Fixing it now :)
> Is there a reason for Tomcat to use a 302 redirect? I think it would be
> better to rewrite the request internally, as other servers (i.e. Apache)
> do.
> Does the user really need to see what file actually answered the
> request?

No, but in the general case we have to do a HTTP redirect because the
servlet API allows welcome files like foo/index.html, in which case :
- the links would be broken
- the security constraints would be ignored

Eventually, we could add something smarter (which would look if the welcome
file is in the same directory), but I'll save that for the next release.

Remy

Reply via email to