cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gerzabek <michael.gerza...@gmx.net>
Subject Re: How to access sitemap parameter within JavaFlow?
Date Thu, 04 Nov 2004 21:30:29 GMT
At 20:49 04.11.2004, you wrote:
>Hello,
>
>I had asked this question in the users list before but got no answer. So I 
>will try it here. I need to access a sitemap parameter within a JavaFlow 
>class. Is this possible?
>
><map:call function="myJavaFlowMethod">
>   <map:parameter name="foo" value="bar"/>
></map:call>
>
>How can I access the parameter "foo" within the JavaFlow?

Of course you can do. When you declare a sitemap flow function call like 
above your flow method must be declared like

function myJavaFlowMethod( foo ) {


}

and a "print( foo );" within this method should show "bar" in your Console.

Regards,
Michael

>Thank you a lot!
>
>Regards
>Stephan


Mime
View raw message