cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guido Casper" <gcas...@s-und-n.de>
Subject Re: correct way to use flow with session-contexts?
Date Wed, 04 Feb 2004 20:40:57 GMT
Joakim Verona wrote:
> Hello,
>
> I would like to access "session context" data from flowscript.
> While googling around, I got the impression that the only way to do
> this is to send a parameter from the sitemap to the flowscript
> function using input modules.
>
> This seems a little inconvenient, but maybe it results in good
> modularization.
>
> On the other hand, if I'm going to send session context data to a
> flowscript using the
> input module, I would like to send entire chunks of xml, not just a
> node or an attribute.
>
> How can this be acomplished?

try:
var contextMan =
cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextMa
nager.ROLE);
var authContext = contextMan.getContext("authentication");
var frag = authContext.getXML("/authentication/data");

HTH
Guido


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


Mime
View raw message