tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Funk <funk...@joedog.org>
Subject Re: [PATCH] forward instead of redirect for welcome files
Date Tue, 07 Jan 2003 00:03:12 GMT
If a trailing / is not present, then performing a 
RequestDispatcher.forward will break all relative references (for the 
web browser)

-Tim

Costin Manolache wrote:
> Matt Parker wrote:
> 
> 
>>On Mon, 2003-01-06 at 14:43, Hans Bergsten wrote:
>>
>>>Okay, that's different. Maybe I misread your patch, but to me it looked
>>>as if you changed the behavior when there's no trailing slash.
>>
>>Actually my patch is forwarding under both circumstances, but according
>>to SRV.9.10 of Servlet 2.4, this is actually correct (phew! :)
> 
> 
> Forwarding if there is no ending "/" doesn't seem right. I'm very sure 
> anchors will be broken.
> 
> It may be a good idea to include a modified patch that makes this optional -
> but IMO redirect should remain the default. But please verify that anchors
> work, including cases where the welcome file is in another directory.
> 
> 
> 
> Costin
> 
>  


--
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