cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: FW: Redirecting users in Cocoon
Date Tue, 01 Feb 2000 23:05:29 GMT
Donald Ball wrote:
> 
> On Mon, 31 Jan 2000, Mike Engelhart wrote:
> 
> > Ed Wolpert wrote:
> >
> > > Whoops.... I just started following the redirect discussion now...
> > > I take it there isn't a way without using XSP.
> > >
> >
> > Not that I know of.  Anyone else have any idea?   A big concern I have about
> > XSP and Cocoon is that they grab the outputstream before any output is
> > actually sent to the browser.  This completely eliminates using
> > RequestDispatcher's which in many cases can eliminate the need for redirect
> > and the need to go back to the browser to do the redirect.  Also to do
> > complex server side manipulations of the request you have to write
> > everything into a session, redirect and then pull it out of the session
> > again which is a pain in the ass.  Anyone know why this is so?  It really
> > sucks.
> 
> Hmm, I was just poking through the code and I fail to see where cocoon
> grabs the outputstream anywhere before this section:
> 
>             response.setContentType(page.getContentType());
> 
>             // get the output writer
>             PrintWriter out = response.getWriter();
> 
>             // send the page
>             out.println(page.getContent());
> 
> unless an exception occurs, in which case Frontend steps in to nicely
> format the stacktrace. it should be a simple matter to check the response
> object at this point and see if a redirect has been sent, and if so, not
> to print anything. Right? If so, +1 for you to send in a patch to
> accomodate that behavior.

Same here.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Come to the first official Apache Software Foundation Conference!  
------------------------- http://ApacheCon.Com ---------------------



Mime
View raw message