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]


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

Reply via email to