cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Pauck <pa...@wmd.de>
Subject Re: sendRedirect with Tomcat/Apache
Date Sun, 19 Nov 2000 13:08:11 GMT
Jeremy Goetsch wrote:
> 
> I'm having a problem, when an xsp page calls request.sendRedirect to
> redirect to another page, part of the contents of the page doing the
> redirect (starting somewhere in the middle) are output before the contents
> of the target page.

Had the same problem. Behavior was different for Netscape and Microsoft
browsers. Ended up to defer output until the decision was made whether
to do a redirect. In this case no page output is created.

Also note that the HTTP 1.1 spec states:
"Unless the request method was HEAD, the entity of the response SHOULD
contain a short hypertext note with a hyperlink to the new URI(s)."

> This only happens when accessing the page through Apache, NOT when accessing
> Tomcat directly or using Tomcat as standalone.

Haven't checked this. Was using the Apache httpd and Tomcat combo.

	Marco

Mime
View raw message