tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Moore" <tmo...@blackboard.com>
Subject RE: [PATCH] forward instead of redirect for welcome files
Date Tue, 07 Jan 2003 00:48:20 GMT
> -----Original Message-----
> From: Matt Parker [mailto:mpark@voyanttech.com] 
> Sent: Monday, January 06, 2003 7:39 PM
> To: Tomcat Developers List
> Subject: Re: [PATCH] forward instead of redirect for welcome files
> 
> 
> 
> > Verified the following:
> > 
> > http://foo/bar#anchor
> > http://foo/bar/#anchor
> > 
> > with a welcome-file of:
> > test/test.jsp
> > 
> > and was correctly forwarded to:
> > 
> > http://foo/bar/test/test.jsp#anchor
> > 
> > 
> 
> okay, I was a little premature (no jokes please). if the 
> welcome file itself has a relative link off of it, then it 
> breaks. so that <a href='foo.jsp'> on test.jsp will try to go 
> to http://foo/bar/foo.jsp rather than http://foo/bar/test/foo.jsp
> 
> i'll see if i can fix that. sorry...
> 

If you want to mirror what Apache HTTPD does:

No slash present --> append slash (only!) and redirect
Slash present --> internally forward to welcome-file page

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message