cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diego Cattelan" <netman...@libero.it>
Subject Parameters
Date Wed, 17 Sep 2003 15:41:02 GMT
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="../globals/authentication/auth.xsp" 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
Mime
View raw message