> -----Original Message----- > From: Matt Parker [mailto:[EMAIL PROTECTED]] > 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:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>