Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 90336 invoked from network); 7 Jul 2005 22:02:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2005 22:02:23 -0000 Received: (qmail 77812 invoked by uid 500); 7 Jul 2005 22:02:20 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 76898 invoked by uid 500); 7 Jul 2005 22:02:17 -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 76885 invoked by uid 99); 7 Jul 2005 22:02:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 15:02:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of javastone@gmail.com designates 64.233.162.200 as permitted sender) Received: from [64.233.162.200] (HELO zproxy.gmail.com) (64.233.162.200) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Jul 2005 15:02:14 -0700 Received: by zproxy.gmail.com with SMTP id i11so139655nzh for ; Thu, 07 Jul 2005 15:02:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VSMfrSKiaKngtoR5dTg6iEHSlD9dURFCGJ9EnPvOMyU2rPoW9aOI6ffOzcJLDP9QYdLbu9UcDp2qaFXHMEcQwnkvpIYtWkd9yvQ9S7OGrXzeMnrVKCzXrkpFPdTZdmXZ2xrm9c+7lKnhQIKP5TXjb4nSKBnT/TgsOMiJHsWgOMA= Received: by 10.36.3.7 with SMTP id 7mr548446nzc; Thu, 07 Jul 2005 15:02:12 -0700 (PDT) Received: by 10.36.67.2 with HTTP; Thu, 7 Jul 2005 15:02:12 -0700 (PDT) Message-ID: <310ab9b405070715021a18d5ec@mail.gmail.com> Date: Thu, 7 Jul 2005 18:02:12 -0400 From: Jarry Liu Reply-To: Jarry Liu To: users@cocoon.apache.org Subject: Re: question about control flow In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <310ab9b405070713384f3ebc42@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I tried several functions, such as getParameter("filename"), but it doesn't work. Finally I solved my problem by tracking the sitemap instead of pass argument in function call. I used getRequest().getSitemapURI(). Thanks. On 7/7/05, Daniel McOrmond wrote: > Hi Jarry, >=20 > To access sitemap parameters in JavaFlow, you could try something like th= is: >=20 >=20 > import org.apache.avalon.framework.parameters.Parameters; > import org.apache.cocoon.components.flow.java.Continuation; > import org.apache.cocoon.components.flow.java.ContinuationContext; >=20 > >=20 > ContinuationContext context =3D (ContinuationContext) > Continuation.currentContinuation().getContext(); > Parameters parameters =3D context.getParameters(); > String foo =3D parameters.getParameter( "foo" ); >=20 >=20 > HTH, >=20 > -Daniel >=20 >=20 > On 7/7/05, Jarry Liu wrote: > > Hi, > > > > I just checked again and found I can pass argument as following. > > > > > > > > If using javascript, I can get the value of filename by > > var param =3D cocoon.parameters.filename; > > > > But how can I get it if I use java instead of javascript. > > > > > > Jarry > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org