Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 72047 invoked from network); 23 Jun 2004 09:24:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Jun 2004 09:24:35 -0000 Received: (qmail 7740 invoked by uid 500); 23 Jun 2004 09:21:43 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 7365 invoked by uid 500); 23 Jun 2004 09:21:37 -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 7302 invoked by uid 99); 23 Jun 2004 09:21:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [130.149.66.116] (HELO vern.chem.tu-berlin.de) (130.149.66.116) by apache.org (qpsmtpd/0.27.1) with ESMTP; Wed, 23 Jun 2004 02:21:35 -0700 Received: from verndeb.chem.tu-berlin.de (verndeb.chem.tu-berlin.de [192.168.66.131]) by vern.chem.tu-berlin.de (8.12.3/8.12.3/SuSE Linux 0.6) with ESMTP id i5N9KmP2000644 for ; Wed, 23 Jun 2004 11:20:48 +0200 Subject: Re: Java flow: Passing parameters in actions From: Stephan Michels To: Cocoon Users In-Reply-To: References: Content-Type: text/plain Message-Id: <1087982556.3013.5.camel@verndeb> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 23 Jun 2004 11:22:36 +0200 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Am Di, den 22.06.2004 schrieb johan coens um 20:00: > Hello, > > How do you read parameters you pass to your action in java flow? > > Sample call: > > > > > > In com.myHandler which extends AbstractContinuable, how do i read the > parameter myParam? Seems that I have missed the parameters. I have now added them, and you can use them like this public void doParameterTest() throws Exception { Assert.assertEquals("abc", getParameters().getParameter("p1")); Assert.assertEquals("def", getParameters().getParameter("p2")); Assert.assertEquals(2.3f, getParameters().getParameterAsFloat("p3"), 0.1f); } Please tell me if you are comfortable with the usage. Stephan Michels. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org