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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]