cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jcplerm" <jcpl...@ameritech.net>
Subject Re: Parameters
Date Wed, 17 Sep 2003 16:07:58 GMT
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 ----- 
  From: Diego Cattelan 
  To: users@cocoon.apache.org 
  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="../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