cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Laurent Trillaud" <ltrill...@jouve.fr>
Subject RE: Portal: Desperately seeking autehtication/ID from Java code
Date Fri, 17 Sep 2004 05:47:23 GMT
Hi
Try this :

var sessionManager = cocoon.getComponent(
Packages.org.apache.cocoon.webapps.session.SessionManager.ROLE);
var userLogin = sessionManager.getContextFragment( "authentication",
"/authentication/ID").getFirstChild().getNodeValue();

Laurent Trillaud

> I am writing XML generators for the new portal framework. In order to do
> something useful I need in Java code to access the authentication/ID in
> order to get the name of the person currently logged into the session.
> 
> How can I do that?


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


Mime
View raw message