cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Quenot <...@anyware-tech.com>
Subject Re: Access to the AuthenticationContext
Date Mon, 09 Jan 2006 12:14:52 GMT
* Stefan Pietschmann:
> | You can also use the « session-context » input module to retrieve
> | the piece of information more nicely:
> 
> I would actually call this like
> getInputModuleAttribute(manager,"session-context","/authentication/id")? And
> it would return the id?

Yes, quite: getInputModuleAttribute(manager,"session-context","authentication/authentication/id")

> Even if so, I don't always have the full xpath and have to search for the
> node, which would be kinda hard this way.

You can use an XPath expression like:

getInputModuleAttribute(manager,"session-context","//id")

Best regards,
-- 
Jean-Baptiste Quenot
Systèmes d'Information
ANYWARE TECHNOLOGIES
Tel : +33 (0)5 61 00 52 90
Fax : +33 (0)5 61 00 51 46
http://www.anyware-tech.com/

Mime
View raw message