cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torsten Curdt <tcu...@apache.org>
Subject Re: How to access sitemap parameter within JavaFlow?
Date Thu, 04 Nov 2004 21:54:02 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"] !!

I guess he is after JAVAflow ;-)

IIRC the parameters are set inside the continuation context.
If you inherit from AbstractContinuable you should be able
to just use getParameters().

HTH

cheers
--
Torsten

Mime
View raw message