Hey, that's exactly what I was looking for! Thanks.

Where can I find this (and similar) sitemap syntax information?

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/

_________________________________________________________________
Be the first to hear what's new at MSN - sign up to our free newsletters!
http://www.msn.co.uk/newsletters


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




--
Antonio Magni

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

Reply via email to