cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric SCHAEFFER" <eschaef...@posterconseil.com>
Subject Re: login concept
Date Thu, 22 Jun 2000 13:16:15 GMT
Youps, typo error:

Login checking should'nt be done in XSP pages...
                              ^^^^^

----- Original Message -----
From: "Eric SCHAEFFER" <eschaeffer@posterconseil.com>
To: <cocoon-users@xml.apache.org>
Sent: Thursday, June 22, 2000 3:13 PM
Subject: Re: login concept


> Login checking should be done in XSP pages but at the "server" level (in
> Cocoon: sitemap or producer, or at a higher level). Thus you can protect
> other ressources, using more complex rules.
>
> Eric.
>
> ----- Original Message -----
> From: "Gabor Dolla" <agdolla@mezon.net>
> To: <cocoon-users@xml.apache.org>
> Sent: Thursday, June 22, 2000 2:41 PM
> Subject: Re: login concept
>
>
> > >
> > >    ltd.ims.etape.Access access = new ltd.ims.etape.Access(session,
> request,
> > > sDriver, sDatabase);
> > >    if (!access.allow()) {
> > >
> > >
> response.sendRedirect("../login/login.xml?redirect=../manage/bookin.xml");
> > >     return;
> > >    }
> >
> > what I personally don't really like about this solution that you have to
> > include this piece into every XSP page. I have to include the same
> > piece of code into every xsp page, my piece of code checks if the
session
> > has expired and sends a redirect.
> > I think the following would be a cool solution to this:
> >
> > have an xsp page with everything that should be executed every time
> > that would be compiled into a java class which extends XSPPage
> >
> > other xsp pages would extend this new class and the
> > generated populateDocument method would start with
> > super.populateDocument()
> >
> > Gabor
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> > For additional commands, e-mail: cocoon-users-help@xml.apache.org
> >
>
>
> ---------------------------------------------------------------------
> 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