Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 9139 invoked from network); 19 Mar 2006 22:32:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Mar 2006 22:32:35 -0000 Received: (qmail 98228 invoked by uid 500); 19 Mar 2006 22:32:23 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 98169 invoked by uid 500); 19 Mar 2006 22:32:23 -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 98158 invoked by uid 99); 19 Mar 2006 22:32:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 14:32:23 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [69.93.53.226] (HELO admin.mesanetworks.net) (69.93.53.226) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 19 Mar 2006 14:32:22 -0800 Received: from [65.175.0.109] (port=62516 helo=[192.168.0.101]) by admin.mesanetworks.net with esmtp (Exim 4.52) id 1FL6Tt-0004Nt-TS for users@cocoon.apache.org; Sun, 19 Mar 2006 15:34:38 -0700 Message-ID: <441DDBBD.4080203@lojjic.net> Date: Sun, 19 Mar 2006 15:31:25 -0700 From: Jason Johnston User-Agent: Thunderbird 1.5 (X11/20060111) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: How can I redirect a Cocoon uri to my regular cgi-bin ? NB with request parameters, please. References: <200603192012.33985.ken@lampsacos.demon.co.uk> In-Reply-To: <200603192012.33985.ken@lampsacos.demon.co.uk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - admin.mesanetworks.net X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - lojjic.net X-Source: X-Source-Args: X-Source-Dir: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ken Starks wrote: > I have a simple (Sorry, its Hello, World) script, writen in python. > It works fine for example using: > http://localhost/cgi-bin/hello.py?name="fred"&n=4 > > Now I have wish to have it as part of a Cocoon project called 'Graphics' and > I eventually got it to partly work with the following entry in > $Catalina_Home/webapp/Graphics/sitemap.xmap > > > > > > Script 'Barehello.py is the same as hello.py except it misses out the > line > > The result, in my browser, of typing > > http://localhost:8888/Graphics/Hello?name=Fred&n=12 > > is a web page, but it completely ignores the request parameters 'name' and > 'n'. It uses the defaults, which are name=World&n=10 > > What should I do? You need to pass the request query string (the part after the ? in the URL) to your python page. You can use the request input module for this: Hope that helps --Jason --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org