Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 11447 invoked from network); 25 Oct 2005 07:14:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 07:14:15 -0000 Received: (qmail 68766 invoked by uid 500); 25 Oct 2005 07:14:10 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 68747 invoked by uid 500); 25 Oct 2005 07:14:09 -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 68736 invoked by uid 99); 25 Oct 2005 07:14:09 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 00:14:09 -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 [194.109.24.28] (HELO smtp-vbr8.xs4all.nl) (194.109.24.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 00:14:07 -0700 Received: from [10.0.0.156] (daigeert.xs4all.nl [80.127.22.250]) (authenticated bits=0) by smtp-vbr8.xs4all.nl (8.13.3/8.13.3) with ESMTP id j9P7DkfZ030716 for ; Tue, 25 Oct 2005 09:13:46 +0200 (CEST) (envelope-from Geert.Josten@daidalos.nl) Message-ID: <435DDB27.6000507@daidalos.nl> Date: Tue, 25 Oct 2005 09:13:43 +0200 From: Geert Josten Organization: Daidalos BV User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: How to send parameters to a URL via http? References: <475fea880510241046w1fc55995hb6b1636524937f6d@mail.gmail.com> In-Reply-To: <475fea880510241046w1fc55995hb6b1636524937f6d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Brian, Have you copied the flowscript code literally? The variable uri is not defined. Replace it by a string literal or pass a uri parameter to the function from the sitemap.. HTH, Geert Brian Burridge wrote: > I've added your code and I keep getting an error: > > org.apache.cocoon.ProcessingException: Generator already set. Cannot set > generator 'file' at [unknown location] > > Any idea why? > > Brian > > On 10/24/05, *Ard Schrijvers* > wrote: > > You could do it easily with flow-script: > > > > src="cocoon:/getthistroughflow"/> > > > > > > > > in flow: > > function post2requestUri{ > var queryString = ""; > > for (var i in cocoon.getParameterNames){ > > queryString += loop through paramters and put them in > querystring > } > > cocoon.sendPage(uri+queryString) ; > } > > In fact, pretty lousy solution but probably works just fine > > > > > Word of caution - if the request is a post, the queryString > > will be empty. If anyone knows a way around that one, please > > post - I have forms that I'd really like to post but are a > > get for now, because I don't know what params will be present! > > > > Chris Marasti-Georg > > > > > -----Original Message----- > > > From: Ard Schrijvers [mailto:a.schrijvers@hippo.nl > ] > > > Sent: Monday, October 24, 2005 5:00 AM > > > To: users@cocoon.apache.org > > > Subject: RE: How to send parameters to a URL via http? > > > > > > I don't think Brian is much helped with this, because what he > > > wants is something like: > > > > > > > > > > > > > > src="fetchExtURI-incl-currentParameters"/> > > > > > > > > > > > > > > > > > > > > What Brians problem is is how to append the currentParameters > > > to the external xml fetch. I am not really sure about the > > > syntax, but something like > > > > > > > > src="fetchExtURI?{request-param:queryString}"/> should do the job. > > > > > > AS > > > > > > > Le 24 oct. 05, � 05:49, Brian Burridge a �crit : > > > > > > > > > ... I see the File Generator can get xml from a url, but I > > > > don't see a > > > > > way to be able to include any parameters, or even better > > > > include the > > > > > xml the RequestGenerator can create, and pass that as a > > > parameter... > > > > > > > > You need a map:aggregate to combine the output of both > > > generators, see > > > > > > > > > http://cocoon.apache.org/2.1/userdocs/concepts/sitemap-examples.html > > > (which also shows how to pass request parameters to an XSLT > > transform > > > directly, using use-request-parameters) > > > > > > http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Ag > > > gregating > > > > > > -Bertrand > > > > > > > > > > > --------------------------------------------------------------------- > > > 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 > > > -- Drs. G.P.H. Josten Consultant Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org