cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: No "authentication" context?
Date Wed, 03 Sep 2003 12:37:09 GMT
The name is correct. Do you have the auth-protect action in your pipeline?

Carsten

> -----Original Message-----
> From: Paul Bowler [mailto:paulbowler@www.aventix.co.uk]
> Sent: Wednesday, September 03, 2003 2:23 PM
> To: users@cocoon.apache.org
> Subject: RE: No "authentication" context?
> 
> 
> OK, now I have:
> 
> ContextManager cm = (ContextManager) 
> this.manager.lookup(ContextManager.ROLE);
> SessionContext sc = cm.getContext("authentication");
> 
> My session context (after logging on) is always null. What should 
> the context name be? I have tried many different 
> things and they are all null. A getContextNames() method would be 
> very useful here!
> 
> Regards,
> 
> Paul.
> 
> On Wed, 3 Sep 2003 13:34:25 +0200, Carsten Ziegeler wrote
> > Ok, if you have a component manager in the variable "manager", do this:
> > 
> > (it's free typed into the mail without syntax checking)
> > 
> > import org.apache.avalon.framework.component.Component;
> > import org.apache.cocoon.webapps.session.ContextManager;
> > 
> > ContextManager cm =
> > (ContextManager)this.manager.lookup(ContextManager.ROLE);
> > try {
> >   SessionContext sc = cm.getContext(CONTEXT_NAME);
> > 
> >   // use the context here
> > 
> > } finally {
> >   manager.release((Component)cm);
> > }
> > 
> > This is really all I can provide you, you have to figure out the rest.
> > 
> > Carsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message