Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 73474 invoked from network); 30 Sep 2005 09:08:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Sep 2005 09:08:05 -0000 Received: (qmail 42840 invoked by uid 500); 30 Sep 2005 09:07:59 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 42799 invoked by uid 500); 30 Sep 2005 09:07:59 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 42788 invoked by uid 99); 30 Sep 2005 09:07:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2005 02:07:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [132.230.150.3] (HELO atlas.informatik.uni-freiburg.de) (132.230.150.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Sep 2005 02:08:03 -0700 Received: from eradior.informatik.uni-freiburg.de ([132.230.152.161]) by atlas.informatik.uni-freiburg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.51) id 1ELGre-0006Ou-0g for users@cocoon.apache.org; Fri, 30 Sep 2005 11:07:34 +0200 Message-ID: <433D0050.6040801@guschtel.de> Date: Fri, 30 Sep 2005 11:07:28 +0200 From: Christoph Hermann User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Using the output of a pipeline to call another pipeline? References: In-Reply-To: X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Derek Hohls schrieb: Hello, > Thank's for the replies, > Both using an action, and using a flowscript seem promising, but also > problematic. > > For the flowscript solution to work, I need to read the xQuery result > from a cocoon pipeline. Unfortunately, cocoon.processPipelineTo() does > not work as in this example: > readImage() { > // get request uri in here somehow > var realfile = > cocoon.processPipelineTo("flow/locateimage"+cocoon.getRequestUri()); > > //parse response > var realFilename = getFilenameFromResponse(realfile); > > Cocoon.sendPage("flow/readimage/"+realFileName"); > } > processPipelineTo wants an outputstream to send the response to, > rather than storing it in a variable, as I need to do. Is there a way > around this? Just do it like this (if i got you right): var output = new Packages.java.io.ByteArrayOutputStream(); cocoon.processPipelineTo("flow/locateimage"+cocoon.getRequestUri(),null,output); var realFilename = getFilenameFromResponse(output.toString()); // or whatever you want to do with it HTH Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org