You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tuomo Lesonen <tl...@cc.hut.fi> on 2002/08/08 14:04:03 UTC
Sending parameters to sub-sitemap
Hi,
I need to send parameters to a sub-sitemap, to configure it properly. This
is what I have in the parent map:
<map:match pattern="foo">
<map:mount check-reload="yes" src="sub/" uri-prefix="sub">
<map:parameter name="test-param" value="some value"/>
</map:mount>
</map:mount>
...And in the sub-map:
<map:pipelines>
<map:global-parameters>
<map:parameter name="test-param" value="something for default"/>
</map:global-parameters>
<map:match pattern="*>
<map:redirect-to uri="{../test-param}"/>
</map:match>
</map:pipelines>
...And I'm getting the default value of the global parameter as a result!
So the parameter sent from the parent map is never submitted. Omitting
the default-value gives an error. I'm using 2.1-DEV.
Help.
-Tuomo
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: Sending parameters to sub-sitemap
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Tuomo Lesonen [mailto:tlesonen@cc.hut.fi]
>
> Hi,
>
> I need to send parameters to a sub-sitemap, to configure it properly.
This
> is what I have in the parent map:
>
> <map:match pattern="foo">
> <map:mount check-reload="yes" src="sub/" uri-prefix="sub">
> <map:parameter name="test-param" value="some value"/>
Is this syntax valid? To the best of my knowledge, no, it is not.
Vadim
> </map:mount>
> </map:mount>
>
> ...And in the sub-map:
>
> <map:pipelines>
> <map:global-parameters>
> <map:parameter name="test-param" value="something for default"/>
> </map:global-parameters>
>
> <map:match pattern="*>
> <map:redirect-to uri="{../test-param}"/>
> </map:match>
> </map:pipelines>
>
> ...And I'm getting the default value of the global parameter as a
result!
> So the parameter sent from the parent map is never submitted. Omitting
> the default-value gives an error. I'm using 2.1-DEV.
>
> Help.
>
> -Tuomo
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>