cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Engelhart <mengelh...@earthtrip.com>
Subject FW: redirect
Date Fri, 28 Jan 2000 17:42:37 GMT
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> 


Mime
View raw message