This "../" is needed whenever you have an extra level in your pipeline. The action is such a level so use "../".to go up one level and get the parameter.
Kind Regards, Jan
Ulf Sahlin wrote:
Hi!
I'm having some trouble with authentication and pattern matchers. Is there some reason as to why this works:
<map:match pattern="customer/*"> <map:act type="auth-protect"> <map:parameter name="handler" value="customerhandler"/>
<map:match pattern="customer/overview.*"> <map:call resource="generate-customer-overview"/>
<map:call resource="transform-customer-overview-{1}"> <map:parameter name="locale" value="{../locale}"/> </map:call>
<map:call resource="serialize-{1}"/> </map:match> </map:act> </map:match>
.. but this does not:
<map:match pattern="customer/overview.*"> <map:act type="auth-protect"> <map:parameter name="handler" value="customerhandler"/> <map:call resource="generate-customer-overview"/> <map:call resource="transform-customer-overview-{1}"> <map:parameter name="locale" value="{../locale}"/> </map:call> <map:call resource="serialize-{1}"/> </map:act> </map:match>
In the lower non-working version I'm getting errors about Cocoon not finding the resource "transform-customer-overview-" (please note the trailing dash). This would mean, the pattern "*" matcher value is lost? Normally, {1} would translate into "html" or whatever carrier I'm using.
Best regards, Ulf Sahlin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]