Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 36023 invoked from network); 5 May 2004 12:04:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 May 2004 12:04:06 -0000 Received: (qmail 60861 invoked by uid 500); 5 May 2004 12:03:19 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 60823 invoked by uid 500); 5 May 2004 12:03:19 -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 60719 invoked from network); 5 May 2004 12:03:17 -0000 Received: from unknown (HELO otsrv1.iic.ugent.be) (157.193.121.51) by daedalus.apache.org with SMTP; 5 May 2004 12:03:17 -0000 Received: from 192.168.123.100 (host100 [192.168.123.100]) by otsrv1.iic.ugent.be (8.11.6/8.11.6) with ESMTP id i45C3HO31025 for ; Wed, 5 May 2004 14:03:17 +0200 Subject: Re: JXTemplates - what's in a name? From: Bruno Dumon To: users@cocoon.apache.org In-Reply-To: References: Content-Type: text/plain Organization: Outerthought Message-Id: <1083758550.26865.17.camel@23.13 yum.ot yum Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 05 May 2004 14:02:30 +0200 Content-Transfer-Encoding: 7bit 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 On Wed, 2004-05-05 at 11:34, Derek Hohls wrote: > Bruno > > Thanks for helping clarify this - maybe all this is "obvious" > to well-seasoned developers, but perhaps not to everyone. > > To continue; assuming that inserting database records, > modifying object models etc does not take place anywhere in > the pipeline; where *does* it take place in your application as > a whole - in custom written actions? in the flowscript?? Previously in actions, now that there is flowscript in flowscript. In both cases, that doesn't mean you should put that all in there as one big spaghetti-coded method. Delegate things to other components (plain javascript or java objects, Avalon-based components, EJB's, whatever that makes sense, but this falls outside the scope of Cocoon). There's one important practical reason to do it that way (besides maintainability, transparency and such): based on the results of the operations you do, you can decide to redirect to some place else, call another pipeline, whatever. If in the middle of your generator/XSP you suddenly realise you want to show another page, you can't redirect anymore since the output-generation process already started. (ok, if you buffer all output you can, but that's a work-around [or worse, using html meta-tags]) -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center bruno@outerthought.org bruno@apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org