Sylvain Wallez wrote:
Stephan Coboos 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?
Well, it's as simple as cocoon.parameters["foo"] !!
Forgot to say: this also works for <map:call continuation="">, which means you'll have different values for cocoon.parameters after a cocoon.sendPageAndWait.
Sylvain
-- Sylvain Wallez Anyware Technologies http://www.apache.org/~sylvain http://www.anyware-tech.com { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
