Hi
I'm new to Cocoon system and I don't understand how to pass parameters from
sitemap:
-----------------------------------------------------------
sitemap.xmap:
-----------------------------------------------------------
....
       <map:match pattern="auth_entra">
        <map:generate src="" type="serverpages">
            <map:parameter name="username" value="topolino"/>
            <map:parameter name="password" value="topolinopw"/>
            <map:parameter name="action" value="entraTest"/>
        </map:generate>
        <map:serialize type="xml"/>
      </map:match>
....
----------------------------------------------------------
auth.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">
    
    <authentication>
        username =  <xsp-request:get-parameter name="username"/>
    </authentication>

</xsp:page>
I'm unable to find any hints on the docs.
 
Thankyou

Reply via email to