tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stig Kleppe-Jørgensen <>
Subject Re: Relative redirect with sendRedirect(...)
Date Wed, 19 Nov 2008 12:05:45 GMT

>> If not, why doesn't a HttpServletResponse.sendRedirect("../../go/here")
>> work? As far as I can read from the servlet spec, the servlet engine
>> _must_
>> resolve relative redirects before sending the redirect back to the
>> browser.
>> But as far as I can tell, Tomcat does not do this. And furthermore, the
>> watchdog tests does not have a test for this.

> Where were you when you issued the redirect?

I stand in this url:


and want to go to this url:


When calling 


Tomcat generates this url:


The same worked in Jetty.

View this message in context:
Sent from the Tomcat - User mailing list archive at

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message