cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric SCHAEFFER" <eschaef...@posterconseil.com>
Subject Re: redirect
Date Mon, 31 Jan 2000 08:28:56 GMT
Yes, you can do this way, but how do you stop Cocoon processing (there can
be other processors...) ? Or your code needs to be written before other
pi...

The best :
The Cocoon Engine class needs to be modify to stop processing if it receives
a certain signal.

Eric.

_______________________________________

Eric SCHAEFFER
eschaeffer@posterconseil.com

POSTER CONSEIL
118 rue de Tocqueville
75017 PARIS
FRANCE
Tel. : 33-140541058
Fax : 33-140541059

----------------------------------------------------------------------------
-----------------------------
 Come to the first official Apache Software Foundation Conference!
-----------------------------------
http://ApacheCon.Com ------------------------------------
_______________________________________

----- Original Message -----
From: Mike Engelhart <mengelhart@earthtrip.com>
To: Cocoon Users <cocoon-users@xml.apache.org>
Sent: Friday, January 28, 2000 6:42 PM
Subject: FW: redirect


> Sorry about that I used the session wrapper which has absolutely nothing
to
> do with redirects!! :-)
> My bad -
>
> Anyway XSP allows you partial access to HttpResponse so you can do this:
>
>
> <xsp:logic>
>     if (doRedirect)
>     {
>        response.sendRedirect("page.xsp.xml");
>        return;
>     }
>     // else continue generating your XML -> XSL output
> </xsp:logic>
>
> ----------
> From: Mike Engelhart <mengelhart@earthtrip.com>
> Date: Fri, 28 Jan 2000 11:33:54 -0600
> To: <cocoon-users@xml.apache.org>
> Subject: Re: redirect
>
> Or it's really easy if instead of hand-coding a producer, you write an XSP
> which has an HttpSession wrapper in it.  Just do something like:
>
> <xsp:logic>
>     if (doRedirect)
>     {
>        session.sendRedirect("page.xsp.xml");
>        return;
>     }
>     // else continue generating your XML -> XSL output
> </xsp:logic>
>
>
> ---------------------------------------------------------------------
> 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