cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Stevens" <>
Subject Re: RE: Using match pattern parameter from within a sub-act.
Date Mon, 13 Nov 2006 18:56:30 GMT
>From: "Antonio Magni" <>
>Date: Fri, 10 Nov 2006 00:13:18 -0200
>Hey, that's exactly what I was looking for! Thanks.
>Where can I find this (and similar) sitemap syntax information?

If I remember rightly, I originally picked that up from the book "Cocoon 
Developer's Handbook" (by Lajos Moczar & Jeremy Aston). does
mention it briefly, though it's easy to miss - look for the text "This Map 
object does not replace the previous Map object, but is stacked on top of 
it. The other Map objects are still accessible through a path expression." 
just before the "Flow Control" section.  Also, I'd be surprised if there 
wasn't anything in the samples that used this syntax, though I don't have a 
built version of those to hand to check.

(Open source java Sudoku application)

>On 11/8/06, Andrew Stevens <> wrote:
>> >From: "Antonio Magni" <>
>> >Date: Wed, 8 Nov 2006 15:00:08 -0200
>> >
>> >Hi,
>> >
>> >A basic question, but I cannot find a reference for this anywhere:
>> >
>> >How do I access the parameters from my match pattern within an act?
>> >The following snippet explains my situation where I get a
>> > [...]xsp/.xsp (No such file or
>> >directory)
>> >
>> >-------- snippet begins ---------
>> >   <map:match pattern="protected/*">
>> >        <map:act type="auth-protect">
>> >          <map:parameter name="handler" value="ybadminhandler"/>
>> >...
>> >        <map:generate type="serverpages" src="xsp/{1}.xsp"/>
>>{1} at this point would refer to a value being set in the map returned by
>>the auth-protect action.  To access the one set at the higher level by the
>>matcher, use "xsp/{../1}.xsp" instead.  If you add any other actions (e.g.
>>the locale action) around the components then use additional "../"s
>Antonio Magni

Windows Live™ Messenger has arrived. Click here to download it for free!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message