cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: [C2] Handling Redirects
Date Sat, 16 Dec 2000 16:24:57 GMT
Joerg Henne <joerg@cogito.de> wrote:
>The actor concept is a really powerful one and I agree that handling 
>redirects
>by using actors is a much nicer design, but after some pondering I still 
>think
>that there are cases that cannot be solved without redirects from within 
>the
>XSP logic.
>Please consider, for instance, cases in which the descision for a redirect 
>has
>to be made based on which particular logic blocks have been incorporated 
>into
>a XSP page. Suppose we have a logicsheet which defines a set of 
>functionality
>which requires the user to be logged in and another one which can be used
>without being logged in. To solve this problem using actors, I see three
>possible options:
>1. "marking" those XSP pages that require a login in some way, e.g. by 
>putting
>them below a certain directory
>2. having the XML author provide the information about which pages require 
>a
>login to cocoon, e.g. by editing the sitemap
>3. anticipating the XSP generation stage from within the actor and 
>analysing
>which logic blocks are used
>
>All three solutions don't seem very satisfying or elegant to me.

Agreed - good analysis.

Naturally,
>I'd be glad to hear about other solutions I haven't come up with.
>
> > I don't see why the ResourcePipeline object should handle page redirects
> > if the XSP page can't handle it. What is the benefit of that? Can you
> > further explain that?
>
>The assumption is: redirecting is a process that completely breaks the
>pipeline concept of cocoon. So, if we can't do without it, then make it 
>break
>it drastically <g>. Furthermore, using exceptions for redirect handling is 
>a
>fairly common concept in servlet development, I think. For instance, 
>Enhydra's
>presentation objects do it that way.

So does Cocoon 1.8.1-dev :-)



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message