On 26.Jan.2003 -- 11:57 PM, SAXESS - Hussayn Dabbous wrote:
> Hy;
>
> I want to use the RequestParam action to pass a parameter into
> an aggregation. In parallel the parts of the agregation shall
> be assembled from the match parameters {1} {2} ...
>
> My "original sitemap" leads to an "Resource not found" error:
>
> <snip .../>
>
> <map:actions>
> <map:action name="request"
> logger="sitemap.action.request"
> src ="org.apache.cocoon.acting.RequestParamAction">
> </map:action>
> </map:actions>
>
> <snip .../>
>
> <map:match pattern="*">
> <map:act type="request">
> <map:parameter name="parameters" value="true"/>
> <map:aggregate element="page">
> <map:part element = "menu" src="cocoon:/{1}/menu"/>
> <map:part element = "canvas"
>src="cocoon:/{1}/canvas?usercollection={usercollection}"/>
> </map:aggregate>
> </map:act>
> <map:transform src="xsl/page.xsl"/>
> <map:serialize/>
> </map:match>
>
>
> >From what i see in the logs i guess {1} is filled with blank or null.
> i get an error stating "Resource 'menu' not found"
> I can't see, whether {usercollection} is also blanked out...
The action starts a new level of variables. In sitemap.log you should
find a dump of all variables when the level changes. You need to write
{../1} instead of {1}.
Chris.
--
C h r i s t i a n H a u l
[EMAIL PROTECTED]
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>