On 09/01/2004 12:17, Hubert Trzewik (Prosystel) wrote:
Works. I thought that <map:parameter> element inside <map:act> will be 'executed' after action do <action:set-success/>.
--
Hubert Trzewik
Prosystel Sp. z o.o.
[EMAIL PROTECTED]
----- Original Message ----- From: "Olivier Billard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 09, 2004 12:11 PM
Subject: Re: Null instead of value while passing map:parameter to XSPAction
You're passing the parameter to the matcher instead of the action... try : <map:pipeline> <map:match pattern="action.dosomething"> <cut-it-here/> <map:act type="xsp-action" src="serverpages/actions/dosomething.xsp"> <paste-it-there/> <map:parameter name="teststring" value="4213"/> <!-- on action:set-success --> <map:redirect-to uri="welcome"/> </map:act> <!-- on action:set-failure --> <map:redirect-to uri="welcome"/> </map:match> </map:pipeline>
On 09/01/2004 12:09, Hubert Trzewik (Prosystel) wrote:
I still cannot get ride with passing parameters from sitemap to
XSPAction.
In this simple example below teststring_logic gets "null" value instead
of
"4213". Why?
-- part of SITEMAP -- <map:pipeline> <map:match pattern="action.dosomething"> <map:parameter name="teststring" value="4213"/> <map:act type="xsp-action" src="serverpages/actions/dosomething.xsp"> <!-- on action:set-success --> <map:redirect-to uri="welcome"/> </map:act> <!-- on action:set-failure --> <map:redirect-to uri="welcome"/> </map:match> </map:pipeline>
-- DOSOMETHING.XSP -- <xsp:page language="java" xmlns:xsp="http://apache.org/xsp" xmlns:esql="http://apache.org/cocoon/SQL/v2" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:util="http://apache.org/xsp/util/2.0" xmlns:action="http://apache.org/cocoon/action/1.0" xmlns:dosomething="http://dosomething"
<dummypage>
<xsp:logic> String teststring_logic = <util:get-sitemap-parameter
name="teststring"/>;
</xsp:logic>
<dosomething:do><xsp:expr>teststring_logic</xsp:expr></dosomething:do> <action:set-success/>
</dummypage>
</xsp:page>
-- Hubert Trzewik Prosystel Sp. z o.o. [EMAIL PROTECTED]
-- Olivier BILLARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Olivier BILLARD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
