On Mon, 2003-01-06 at 12:57, Costin Manolache wrote:

> The problem is that once again the servlet spec defines a behavior that 
> is different from the common practices on web servers.
> 

I don't see that this particular behavior is actually specified, unless
I'm looking in the wrong place. I think it leaves it open for the
"default" servlet to interpret.


> The welcome-file-list can include more than index.html - you may have
> foo/index.html, etc ( i.e. things in other dirs ). That means #anchors 
> would break if we don't do redirect.

This argument would apply equally to Apache's current implementation.
You can specify multiple index files with the DirectoryIndex directive.
So since Apache doesn't redirect, this must not be the case.

> A second reason for doing redirects: a redirect will let the web server
> handle the file serving ( if the index.html is a static file - or some 
> resource that apache can handle ).

Then wouldn't that be specified in the web server's config? Also,
redirecting the client to make yet another request couldn't possibly be
faster than simply serving the static file.

> 
> A third reason: it's safer :-)

?? how is it safer? 

> 
> Costin

I don't mean to be argumentative, but I really think that it's The Right
Way to do it. However I'll defer to the Tomcat team (I guess I don't
have a choice :)

Cheers,

Matt



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

Reply via email to