Re: Relative redirect with sendRedirect(...)

2008-11-19 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stig, Stig Kleppe-Jørgensen wrote: > I stand in this url: > > http:ication/test/fr/ca > > and want to go to this url: > > http:ibs/name/test.jar Why not just use absolute URLs? httpResponse.sendRedirect(response.encodeRedirectURL("/ibs/na

Re: Relative redirect with sendRedirect(...)

2008-11-19 Thread Mark Thomas
Stig Kleppe-Jørgensen wrote: >>> 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 te

Re: Relative redirect with sendRedirect(...)

2008-11-19 Thread Stig Kleppe-Jørgensen
g httpresponse.sendRedirect("../../../../ibs/name/test.jar") Tomcat generates this url: http:ication/test/fr/ca/../../../../ibs/name/test.jar The same worked in Jetty. Regards, Stig -- View this message in context: http://www.nabble.com/Relative-redirect-with-sendRedirect%28..

Re: Relative redirect with sendRedirect(...)

2008-11-18 Thread Mark Thomas
Stig Kleppe-Jørgensen wrote: > Hi, > > Am I completely mistaken when thinking that an URL like "../../go/here" is > covered under the term relative? No. You are correct. > If not, why doesn't a HttpServletResponse.sendRedirect("../../go/here") > work? As far as I can read from the servlet spec,

Relative redirect with sendRedirect(...)

2008-11-18 Thread Stig Kleppe-Jørgensen
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. Regards, Stig Kleppe-Jørgensen -- View this message in context: http://www.nabble.com/Relative-redirect-w