From users-return-55117-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Wed Sep 03 12:49:31 2003 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 53497 invoked from network); 3 Sep 2003 12:49:31 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 Sep 2003 12:49:31 -0000 Received: (qmail 42816 invoked by uid 500); 3 Sep 2003 12:49:03 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 42765 invoked by uid 500); 3 Sep 2003 12:49:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 42749 invoked from network); 3 Sep 2003 12:49:02 -0000 Received: from unknown (HELO ns3.aventix.co.uk) (212.67.197.222) by daedalus.apache.org with SMTP; 3 Sep 2003 12:49:02 -0000 Received: from www.aventix.co.uk (localhost [127.0.0.1]) by localhost (8.10.2/8.10.2) with ESMTP id h83Chha04953 for ; Wed, 3 Sep 2003 13:43:43 +0100 From: "Paul Bowler" To: users@cocoon.apache.org Reply-To: paulbowler@aventix.co.uk Subject: RE: No "authentication" context? Date: Wed, 3 Sep 2003 13:43:42 +0100 Message-Id: <20030903124342.M61228@www.aventix.co.uk> In-Reply-To: References: <20030903122324.M73678@www.aventix.co.uk> X-Mailer: Open WebMail 1.81 20021203 X-OriginatingIP: 193.39.51.30 (paulbowler@www.aventix.co.uk) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I do now, and it's working fine. Many thanks for you kind help. Paul. On Wed, 3 Sep 2003 14:37:09 +0200, Carsten Ziegeler wrote > 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 -- Paul Bowler Aventix Associates Ltd --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org