cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylv...@apache.org>
Subject Re: How to access sitemap parameter within JavaFlow?
Date Thu, 04 Nov 2004 21:23:20 GMT
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 }


Mime
View raw message