Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 87285 invoked from network); 2 Dec 2003 12:27:03 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Dec 2003 12:27:03 -0000 Received: (qmail 85883 invoked by uid 500); 2 Dec 2003 12:26:53 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 85861 invoked by uid 500); 2 Dec 2003 12:26:53 -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 85847 invoked from network); 2 Dec 2003 12:26:53 -0000 Received: from unknown (HELO moutng.kundenserver.de) (212.227.126.184) by daedalus.apache.org with SMTP; 2 Dec 2003 12:26:53 -0000 Received: from [212.227.126.155] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1AR8sI-0006pd-01 for users@cocoon.apache.org; Tue, 02 Dec 2003 12:39:26 +0100 Received: from [217.80.248.251] (helo=gmx.net) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1AR8sG-0007EH-00 for users@cocoon.apache.org; Tue, 02 Dec 2003 12:39:24 +0100 Message-ID: <3FCC79EA.8080703@gmx.net> Date: Tue, 02 Dec 2003 12:39:22 +0100 From: Stephan Coboos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Passing request parameters to resource/flowscript? References: <3FCC3884.8010403@gmx.net> <3FCC4BE4.9080308@cbim.it> In-Reply-To: <3FCC4BE4.9080308@cbim.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:431002173563032d2d00337e9d76f4cf 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 Ugo Cei wrote: > Stephan Coboos wrote: > >> In the match section I'm calling the resource 'main' which is calling >> a flowscript function itself. But if I do that this way I don't have >> access to the request params within the flowscript! How do I activate >> passing request parameters thru resources to a flowscript? > > > Did you try the following? > > function main() { > > var x = cocoon.request.parameterName; > > // or > > var x = cocoon.request.getParameter("name"); > > } Yes, of course! Because if I don't redirect to a resource in the sitemap and call the function directly all works well. The "error" is very easy reproducable: Simply change this pipeline ... ... to this one ... ... ... ... In the first one cocoon.request... returns the request parameter correctly in the flowscript. In the second one, nothing will be returned. What should I do? Thank you. Regards Stephan --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org