Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 10724 invoked from network); 28 Jul 2004 14:28:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jul 2004 14:28:33 -0000 Received: (qmail 19642 invoked by uid 500); 28 Jul 2004 14:28:04 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 19515 invoked by uid 500); 28 Jul 2004 14:28:02 -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 19429 invoked by uid 99); 28 Jul 2004 14:28:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [193.75.212.6] (HELO mail2.schaubroeck.be) (193.75.212.6) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 28 Jul 2004 07:27:56 -0700 Received: (from root@localhost) by mail2.schaubroeck.be (8.12.3/8.12.3/ESMTP) id i6SERnr1010515 for users@cocoon.apache.org; Wed, 28 Jul 2004 16:27:49 +0200 Received: from [193.74.195.27] ([193.74.195.27]) by mail2.schaubroeck.be (8.12.3/8.12.3/ESMTP) with ESMTP id i6SERZ6e010461 for ; Wed, 28 Jul 2004 16:27:35 +0200 Message-ID: <4107B7D8.6030904@schaubroeck.be> Date: Wed, 28 Jul 2004 16:27:36 +0200 From: Jan Hoskens User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) 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-Scan: by Schaubroeck X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Use the internal-only attribute: put every pipeline you don't want the user to access directly here do whatever you need as actions that's needed for each internal pipeline The redirect-to doesn't do a http redirect if you use the cocoon:/ protocol (see http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html) So every external request ends up in the second pipeline while the internal redirect sees the first pipeline and doesn't reach the second one if the first pipeline covers everything. Mind this last phrase! If you don't want to be cycling through your sitemap pipelines until a redirect exceeded error pops up! You can create a matcher at the end of the first line with pattern="**" that tries to read default xml pages like this: This avoids the cycle and when not found, your error handler will come in. Kind Regards, Jan 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? > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org