I remember having problems with this.

A snippet of how I now do this is here:

ContextManager cm = (ContextManager) this.manager.lookup(ContextManager.ROLE);
SessionContext sc = cm.getContext("authentication");

I hope this helps.

Paul.

--
Paul Bowler
Aventix Associates Ltd

---------- Original Message -----------
From: "iyy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wed, 22 Oct 2003 14:26:56 +0530
Subject: Session.getAttribute problem: cocoon 2.1.3 dev

> Hi,
> 
> We have an action with a statement:
> SessionContext sessioncontext = (SessionContext)
> session.getAttribute("org.apache.cocoon.webapps.authentication.SessionContext");
> 
> //then from the session context we read authentication xml:
> NodeList nodelist = sessioncontext.getNodeList("/demohandler/authentication");
> 
> Which worked in cocoon 2.1.dev version..
> 
> but not in cocoon 2.1.3 dev.
> 
> I think , the following string has 
> changed.."org.apache.cocoon.webapps.authentication.SessionContext"
> Anybody knows what is the new string..?
> 
> Any help is welcome.
> 
> From,
> iyyappan
------- End of Original Message -------


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to