From: "Antonio Magni" <[EMAIL PROTECTED]>
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). http://cocoon.apache.org/2.1/userdocs/concepts/actions.html 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.


Andrew
--
http://pseudoq.sourceforge.net
(Open source java Sudoku application)


On 11/8/06, Andrew Stevens <[EMAIL PROTECTED]> wrote:
>From: "Antonio Magni" <[EMAIL PROTECTED]>
>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
>java.io.FileNotFoundException: [...]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
accordingly.

Regards,


Andrew.
--
http://pseudoq.sourceforge.net/


--
Antonio Magni

_________________________________________________________________
Windows LiveĀ™ Messenger has arrived. Click here to download it for free! http://imagine-msn.com/messenger/launch80/?locale=en-gb


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to