I implemented an action to set an attribute on the request object which looks like:
 
   <map:act type="SetRequestAttributeAction">
                <map:parameter name="requestAttributeName" value="attr1"/>
                <map:parameter name="requestAttributeValue" value="1000"/>
            ...
    </map:act>
 
Can output modules somehow be used to do the same thing as above?
Are there any other ways/ideas of doing it?
 
Thanks,
 
jlerm
----- Original Message -----
Sent: Wednesday, September 17, 2003 10:41 AM
Subject: Parameters

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