cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paolo" <lav...@arsenio.net>
Subject Sitemap parameters scope and non-destructive session parameters propagation
Date Mon, 10 Sep 2001 07:27:21 GMT
I am working with Cocoon but I have some problems with sitemap variables
scope. It seems that Sitemap Parameters propagated from db-authenticator
actions are not inherited into selectors or other db-authenticator
actions. Please look at this code and the scope of myvar_dbvars1
(propagated by db-authenticator action) to the session and Sitemap:

<map:act type="db-authenticator">
	<map:parameter name="descriptor" value="dbvars1.xml"/>
  	<map:select type="session">
      	<map:parameter name="state-key" value="myvar_dbvars1"/>

		<map:when test="customer">
        		<map:act type="db-authenticator">
	    			<map:parameter name="create-session"
value="no"/>
          			<map:parameter name="descriptor"
value="dbvars2.xml"/>
	    			<map:redirect-to uri="{myvar_dbvars1}"/>
	  		</map:act>
					
			<map:act type="session-invalidator">
	    			<map:redirect-to uri="login"/>
	  		</map:act>
      	</map:when>
							
		<map:otherwise>
	  		<map:redirect-to uri="{myvar_dbvars1}"/>
		</map:otherwise>
    	</map:select>
</map:act>

Then, my questions:
1) is it possibile to propagate Sitemap parameters into child elements
of sitemap?
2) is it possibile to check and propagate session attributes to Sitemap
without deleting an existing session?

Thanx!

ByeBye,
Paolo Scaffardi
AIRVENT SAM S.p.A.


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message