cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Poetz" <reinh...@apache.org>
Subject RE: How to passing an param into a resource/action?
Date Tue, 16 Dec 2003 14:37:03 GMT

From: Stephan Coboos

> Hello,
> 
> I have the following resource with an action and call  in it:
> 
> <map:resource name="myResource">
> 
>     <map:act name="myAction">
>        <map:call function="myFunction">
>           <!-- myParam is always empty here -->
>            <map:parameter name="myParam" value="{myParam}"/>
>         </map:call>
>     </map:act>
> 
>     <!-- Do else here ... -->
> 
> </map:resource>
> 
> ... an I call the resource with a parameter from a pipeline like the 
> following example:
> 
> <map:match pattern="">
>     <map:call resource name="myResource">
>        <map:param name="myParam" value="Some value..."/>
>     </map:call>
> </map:match>
> 
> But the parameter myParam is always empty in <map:act/>. Outside the 
> block <map:act/> the param myParam exists. What can I do to make the 
> param myParam accessible in the <map:call/> block which is in the 
> <map:act/> block?

Try {../myParam}

--
Reinhard


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message