You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Neuenschwander <an...@andi.ch> on 2001/05/10 14:17:00 UTC
[C2] repsonse.sendRedirect
Hi,
I tried to use the repsonse.sendRedirect function, but it doesn't seem
to work in Cocoon2 any longer.
Is there an alternative way to send a redirect to the browser?
I used this function in C1 without any problems...
Andi
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: [C2] repsonse.sendRedirect
Posted by Donald Ball <ba...@webslingerZ.com>.
On Thu, 10 May 2001, Andreas Neuenschwander wrote:
> I tried to use the repsonse.sendRedirect function, but it doesn't seem
> to work in Cocoon2 any longer.
>
> Is there an alternative way to send a redirect to the browser?
>
> I used this function in C1 without any problems...
some developers removed this since they felt it violated the seperation of
concerns. you can send redirects using the sitemap redirect elements, but
you cannot do it using the response object. if you have a use case that
you cannot accomodate using sitemap redirects, please, post it to the
cocoon-dev list - this discussion hasn't been settled yet.
- donald
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: [C2] repsonse.sendRedirect
Posted by Martin Man <Ma...@seznam.cz>.
On Fri, May 11, 2001 at 10:12:00AM +0200, Andreas Neuenschwander wrote:
> Thanks a lot to Donald and Giacomo for their helpful informations.
>
> I started to adapt Ulrich's authentication logicsheet to be compatible with
> Cocoon 2, but I felt into this trap.
>
> The lack of this function in C2 reduces the power of the logicsheet concept
> significantly.
>
> I don't understand right now why the SAX pipeline prevents the sendRedirect
> function to work correctly.
>
> But I found out that I can't build an authentication application like
> Ulrich's auth lib,
> without the capability to send redirects within logicsheets.
> I like the way of Ulrich authentication taglib, because the authors of xml
> pages can
> easily include a password protection. But I see that this affects the
> sitemap concept
> a little bit.
>
> My question is now, will it be possible in near future that this function is
> also save
> with the SAX pipeline concept, or isn't it possible at all?
IMO
as said ten times before, would be worth porting auth taglib to the action,
because it can do much more and is much more clean solution (at least for me,
using the declarative way to protect resources from sitemap, unlike the
procedural one from xsps itself)
>
>
>
> - andi
>
>
>
--
-------------------------------------------------------------------------------
"Only dead fish swims with a stream"
gpg_key_available: http://globales.cz/~mman/martin.man.gpg
gpg_key_fingerprint: 2CC0 4AF6 92DA 5CBF 5F09 7BCB 6202 7024 6E06 0223
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [C2] repsonse.sendRedirect
Posted by Andreas Neuenschwander <an...@andi.ch>.
Thanks a lot to Donald and Giacomo for their helpful informations.
I started to adapt Ulrich's authentication logicsheet to be compatible with
Cocoon 2, but I felt into this trap.
The lack of this function in C2 reduces the power of the logicsheet concept
significantly.
I don't understand right now why the SAX pipeline prevents the sendRedirect
function to work correctly.
But I found out that I can't build an authentication application like
Ulrich's auth lib,
without the capability to send redirects within logicsheets.
I like the way of Ulrich authentication taglib, because the authors of xml
pages can
easily include a password protection. But I see that this affects the
sitemap concept
a little bit.
My question is now, will it be possible in near future that this function is
also save
with the SAX pipeline concept, or isn't it possible at all?
- andi
> > Hi,
> >
> > I tried to use the repsonse.sendRedirect function, but it doesn't seem
> > to work in Cocoon2 any longer.
> >
> > Is there an alternative way to send a redirect to the browser?
> >
> > I used this function in C1 without any problems...
>
> In C1 it was save to use sendredirect. In C2 because of the SAX pipeline
> concept it is not save anymore. Use sitemap capabilities to do redirect
> or write Actions for it.
>
> Giacomo
>
> some developers removed this since they felt it violated the seperation of
> concerns. you can send redirects using the sitemap redirect elements, but
> you cannot do it using the response object. if you have a use case that
> you cannot accomodate using sitemap redirects, please, post it to the
> cocoon-dev list - this discussion hasn't been settled yet.
>
> - donald
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org
Re: [C2] repsonse.sendRedirect
Posted by giacomo <gi...@apache.org>.
On Thu, 10 May 2001, Andreas Neuenschwander wrote:
> Hi,
>
> I tried to use the repsonse.sendRedirect function, but it doesn't seem
> to work in Cocoon2 any longer.
>
> Is there an alternative way to send a redirect to the browser?
>
> I used this function in C1 without any problems...
In C1 it was save to use sendredirect. In C2 because of the SAX pipeline
concept it is not save anymore. Use sitemap capabilities to do redirect
or write Actions for it.
Giacomo
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>