cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric SCHAEFFER <ESCHAEF...@Techmetrix.net>
Subject RE: sendRedirect with Tomcat/Apache
Date Mon, 20 Nov 2000 07:15:49 GMT
I encountered the same problem. Do you use Cocoon 1.x (8) ?
When you call response.sendRedirect(...), no more content should be send to
the client.
The XSP page execution continue, and Cocoon doesn't know that it should
stop. You must stop the page execution, and remove from the document all PIs
: 

the XSP page is a producer, and it's its process() method that is called.
But it doesn't return the document, it's just a parameter and the page
manipulate it. Thus, you can't set it to null, or something like that. You
must remove all elements manually...

Maybe it should be changed ?

Eric.


Eric SCHAEFFER
Consultant TechMetrix Research
http://www.techmetrix.net
Groupe SQLi
http://www.sqli.com
Créateurs de sites intelligents depuis 1995
 

> -----Message d'origine-----
> De: Jeremy Goetsch [mailto:goetsch@usc.edu]
> Date: jeudi 16 novembre 2000 22:04
> À: cocoon-users@xml.apache.org
> Objet: sendRedirect with Tomcat/Apache
> 
> 
> 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.
> 
> This only happens when accessing the page through Apache, NOT 
> when accessing
> Tomcat directly or using Tomcat as standalone.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
> 

Mime
View raw message