Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 52442 invoked from network); 4 Feb 2004 20:36:29 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Feb 2004 20:36:29 -0000 Received: (qmail 33753 invoked by uid 500); 4 Feb 2004 20:35:58 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 33735 invoked by uid 500); 4 Feb 2004 20:35:58 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 33688 invoked from network); 4 Feb 2004 20:35:57 -0000 Received: from unknown (HELO mail.s-und-n.de) (212.8.217.2) by daedalus.apache.org with SMTP; 4 Feb 2004 20:35:57 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id F0B8119F5F3 for ; Wed, 4 Feb 2004 21:36:01 +0100 (CET) Received: from HW0393 ([10.10.20.145]) by notes.sundn.de (Lotus Domino Release 6.5) with SMTP id 2004020421314949-15032 ; Wed, 4 Feb 2004 21:31:49 +0100 Message-ID: <00af01c3eb5f$32ef7440$91140a0a@HW0393> From: "Guido Casper" To: References: <4020C92D.3060306@verona.se> Subject: Re: correct way to use flow with session-contexts? Date: Wed, 4 Feb 2004 21:40:57 +0100 MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 04.02.2004 21:31:49, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 6.5|September 26, 2003) at 04.02.2004 21:31:50, Serialize complete at 04.02.2004 21:31:50 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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