Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39455 invoked from network); 28 Jul 2004 20:41:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jul 2004 20:41:52 -0000 Received: (qmail 89564 invoked by uid 500); 28 Jul 2004 20:41:44 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 89335 invoked by uid 500); 28 Jul 2004 20:41:43 -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 89319 invoked by uid 99); 28 Jul 2004 20:41:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 28 Jul 2004 13:41:40 -0700 X-Sasl-enc: VEQjJO5nNLy3qj1F15P3Tg 1091047293 Received: from [127.0.0.1] (elfriedeholmes.demon.co.uk [80.177.165.206]) by www.fastmail.fm (Postfix) with ESMTP id 96896C132D7 for ; Wed, 28 Jul 2004 16:41:32 -0400 (EDT) Message-ID: <41080E49.1070509@upaya.co.uk> Date: Wed, 28 Jul 2004 21:36:25 +0100 From: Upayavira User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Processing a particular pipeline before every other pipeline? References: <20040728140542.49617.qmail@web54010.mail.yahoo.com> In-Reply-To: <20040728140542.49617.qmail@web54010.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N David Swearingen wrote: > I need to run some cookie generation code (in a pipeline) before any > of my web pages are processed. That is, I've got several pipelines, > but I want this particular pipeline to run before any of the others > are executed. Obviously, I don't want to have to modify every > existing pipeline, and all subsequent new pipelines. I imagine that > this code will be an Action or XSP, but that's really besides the > point: this is more of a pipeline question as I see it. > > (I knew how to do this in Struts, but haven't seen anything like this > so far in my first few months of using Cocoon. In web applications > I've written this type of thing is normally needed for authentication > -- e.g. make sure every request goes through the authentication > servlet before it hits any other servlet...) > > Does anyone know how to do this? > Let me be terse for the moment. I'd suggest you use cocoon.processPipelineTo() from within flowscript. Then, cocoon.sendPage() will run the actual presentation pipeline. Regards, Upayavira --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org