cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: action return params broken ?
Date Fri, 30 Aug 2002 13:53:46 GMT
Artur Bialecki wrote:

>Sitemap parameters that are returned by an actions
>are not available when <map:act> doesn't have any
>child nodes other than <map:parameters/>.
>
>So the following doesn't work:
>   <map:match pattern="somepage.xml">
>     <map:act type="my-act" src="{0}"/>
>     <map:generate/>
>     <map:transform src="{return-act-param}"/>
>     <map:serialize/>
>   </map:match>
>
>but this does:
>
>   <map:match pattern="somepage.xml">
>     <map:act type="my-act" src="{0}">
>       <map:generate/>
>     </map:act>
>     <map:transform src="{return-act-param}"/>
>

Here you are trying to access parameter return-act-param from the map of 
parameters returned by *matcer*. Unfortunately, default matcher 
(wildcard URI matcher) does not return such parameter.


>     <map:serialize/>
>   </map:match>
>
>Any reason for this ??
>

It's a *stack* of parameters. Return parameters do exist only while in 
*scope* of the component which created them.

Vadim



>Thanks,
>
>Artur...
>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message