Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 77831 invoked from network); 2 Mar 2006 23:08:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Mar 2006 23:08:09 -0000 Received: (qmail 88322 invoked by uid 500); 2 Mar 2006 23:08:56 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 88276 invoked by uid 500); 2 Mar 2006 23:08:55 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 88267 invoked by uid 99); 2 Mar 2006 23:08:55 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 15:08:55 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of williamstw@gmail.com designates 64.233.184.195 as permitted sender) Received: from [64.233.184.195] (HELO wproxy.gmail.com) (64.233.184.195) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Mar 2006 15:08:55 -0800 Received: by wproxy.gmail.com with SMTP id i13so775361wra for ; Thu, 02 Mar 2006 15:08:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=siS7rnmY2UNkTPCfvgIg8AzX0DsCNUXnce79Nzk5QlWAPhJZmqTv++yPke8x4GadakR8IuUiGG+NgOeX+/bJe+p5OONNAWyIBLFwdsIsxu+icqyESheU2b/KhKe6Gk+2DvD0Rnu18qjTEmnB2bS3BjjZCuRTS6szvPxWQofPbPQ= Received: by 10.54.128.19 with SMTP id a19mr1531756wrd; Thu, 02 Mar 2006 15:08:34 -0800 (PST) Received: by 10.54.125.4 with HTTP; Thu, 2 Mar 2006 15:08:34 -0800 (PST) Message-ID: <499888440603021508n1ad22e30h57e97c3c010714f2@mail.gmail.com> Date: Thu, 2 Mar 2006 18:08:34 -0500 From: "Tim Williams" To: user@forrest.apache.org Subject: Re: Access to the query part of the URL In-Reply-To: <44076A4A.5080607@aber.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44076A4A.5080607@aber.ac.uk> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 3/2/06, Nigel Hardy wrote: > (Sorry if this is a Cocoon Q. really, but I am working in Forrest and > similar issues arise here from time to time) > > I can happily skin the output of php scripts using redirect-to, the > FileGenerator etc. as suggested in the Cocoon documentation and at > various times on this list. That works just fine for me. Unfortunately, > some of the php scripts I want to use like this take query parts in the > URL to set parameters. I can't see how to get hold of those in a matcher > or selector. I can catch "this/that/theother.php" and skin it, but how > do I get hold of the parameter from "this/that/theother.php?var=3D42" to > feed that to the FileGenerator? > > Help appreciated. > > Nigel Hi Nigel, I was thinking there was a better page than this but if you scroll down this page and look for RequestParameterModule it should do what you need. http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html In forrest, I think it's prefix is just like that example so it would be something like: {request-param:var} to get "42" in your url above. --tim