Works fine, thanks.
From: Stephan Michels <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Cocoon Users <[EMAIL PROTECTED]> Subject: Re: Java flow: Passing parameters in actions Date: Wed, 23 Jun 2004 11:22:36 +0200
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: > <map:call function="myCall"> > <map:parameter name="handler" value="com.myHandler"/> > <map:parameter name="myParam" value="theValue"/> > </map: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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________ Chatten met je online vrienden via MSN Messenger. http://messenger.msn.nl/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
