Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 87147 invoked from network); 15 Feb 2005 10:25:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 15 Feb 2005 10:25:07 -0000 Received: (qmail 50437 invoked by uid 500); 15 Feb 2005 10:25:01 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 50382 invoked by uid 500); 15 Feb 2005 10:25:00 -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 50361 invoked by uid 99); 15 Feb 2005 10:25:00 -0000 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=PRIORITY_NO_NAME,RCVD_BY_IP,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 15 Feb 2005 02:24:56 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D0zqW-0002km-W3 for users@cocoon.apache.org; Tue, 15 Feb 2005 11:22:21 +0100 Received: from 194.204.44.141 ([194.204.44.141]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Feb 2005 11:22:20 +0100 Received: from ilja by 194.204.44.141 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 15 Feb 2005 11:22:20 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: "Ilja Smoli" Subject: Re: session context Date: Tue, 15 Feb 2005 12:34:29 +0200 Lines: 206 Message-ID: References: <7579CAECCAF7D211B9600008C79139D8097D9845@exdssfdh01.south.de.astrium.corp> <4210BFFC.5050306@schaubroeck.be> <4210CCEA.7050805@schaubroeck.be> X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 194.204.44.141 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner-SpamScore: ss X-MailScanner-From: ap-cocoon-users@m.gmane.org X-MailScanner-To: users@cocoon.apache.org X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Jan Im sorry Im new to cocoon.. Im not sure I got this: "Eg: include the pipeline with your sessiontransformer in your normal document and xslt sets parameters in links. This way you can get your parameters easily with xpath expressions." Can you please provide little example of this? I have smth like this: --------------------------- ------------------------------ and my screen is: ------------------------------ Home ------------------------------ but how to add params to links? This probably can be done in my xsl? "Jan Hoskens" wrote in message news:4210CCEA.7050805@schaubroeck.be... > If you're only goal is to show the profile you stored in the session context, you can retreive it > with the session transformer and then process the data there. Eg: include the pipeline with your > sessiontransformer in your normal document and xslt sets parameters in links. This way you can get > your parameters easily with xpath expressions. (at first thought, I would prefer this instead of > passing parameters if you have to work with a complete xml structure) > > If you want to edit the profile, I would suggest a combination of flowscript/cforms. In the > flowscript retreive the base xml document from your session, create a form and send it through a > form-display-pipeline. > > Kind Regards, > Jan > > Ilja Smoli wrote: > > Thanks Jan! > > I got the idea now... > > Little problem that this ( {ID} ) will work only in pipeline which exactly > > uses auth handler.. > > Cause I have a bunch of pages to protect , I have one pipeline with > > "protect" which uses then internal pipelines, but I think i can handle this > > problem.. > > Other question is can you please point me out on this: > > I want to have like this (really common for webapps :-) ): after user login, > > have a session with user data (names, adresses etc...). This I can do using > > this "auth fw" and put everithing in session contexts. Problem actually in > > retrieving this data... Like to add parameters to links etc... > > For docs I use xml, transformed through xsl... > > For example I need a link like > > Edit profile > > > > Where it is better to do this? > > In xsl like: > > > > Here goes html code for this link with added params from session > > > > > > or directly in xml doc? > > Im confused about this :) > > thx in advance... > > > > > > "Jan Hoskens" wrote in message > > news:4210BFFC.5050306@schaubroeck.be... > > > >>When the user is authenticated, you can use {ID} and {ROLE} in your > > > > sitemap: > > > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >>Pass it to an xsl stylesheet: > >> > >> > >> > >> > >>and in your stylesheet declare at toplevel: > >> > >> > >> > >> > >> > >>If needed: there are ways to get session xml in flowscript or jxtemplates, > > > > just give a sign if you > > > >>need these (they are somewhere on the mail archives too). > >> > >>Kind regards, > >>Jan > >> > >>Ilja Smoli wrote: > >> > >>>Thx for reply > >>>But as I understood authentication fw stores session object as xml > >>>and i can not get attributes using {session:} :( > >>> > >>> > >>>"Bowe, Bastian" wrote in message > >>> > > > > news:7579CAECCAF7D211B9600008C79139D8097D9845@exdssfdh01.south.de.astrium.corp... > > > >>>>Never used session. But can't you use {session:username} as a > >>>> for your ? > >>>> > >>>> > >>>> > >>>>>-----Original Message----- > >>>>>From: Ilja Smoli [mailto:ilja@frontdesk.ee] > >>>>>Sent: Monday, February 14, 2005 2:33 PM > >>>>>To: users@cocoon.apache.org > >>>>>Subject: session context > >>>>> > >>>>> > >>>>>Hi > >>>>>I use authentification framework in cocoon 2.1.5... > >>>>>I know that to get data out of session I can use > >>>>> >>>>>stylesheet? Or for example in my xml page where i want to put > >>>>>some value from session to link as query parameter? Smth like: > >>>>>------------------------------- > >>>>> > >>>>> > >>>>> Home > >>>>> > >>>>>
> >>>>> Edit profile
................ > >>>>> > >>>>>Thx in advance... > >>>>> > >>>>> > >>>>> > >>>>> > >>>>>--------------------------------------------------------------------- > >>>>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > >>>>>For additional commands, e-mail: users-help@cocoon.apache.org > >>>>> > >>> > >>> > >>> > >>> > >>> > >>>--------------------------------------------------------------------- > >>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > >>>For additional commands, e-mail: users-help@cocoon.apache.org > >>> > >>> > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > > For additional commands, e-mail: users-help@cocoon.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org