cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lundquist ...@wrinkledog.com>
Subject Re: how to pass sitemap params to javaflow?
Date Mon, 01 Sep 2008 15:22:34 GMT

On Sep 1, 2008, at 6:03 AM, Мария Григорьева wrote:

> In sitemap I have the parameter:
>
>                     <map:match pattern="main/*/*">
>                                <map:call function="{2}">
>                                                <use-request- 
> parameters>true</use-request-parameters>
>                                                <map:parameter  
> name="id" value="{1}"/>
>                                </map:call>
>                   </map:match>
>
> I need to pass it to the javaflow.
>
> In flowscript I used : var id = cocoon.parameters.id;
>
> Help please!

That looks right to me.  But get rid of the <use-request- 
parameters>... it's not part of <map:call> and has no effect there.   
It's only for the XSLT transformer.

And speaking of <use-request-parameters> in the XSLT transformer...  
IMHO it's a bad idea and you should avoid it! ;-)

cheers,
—ml—



Mime
View raw message