cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Sparkes <pe...@didm.co.uk>
Subject Re: Fwd: About session-context:authentication Input
Date Thu, 06 Jul 2006 14:44:29 GMT
Try something like

<map:act type="auth-protect">
     <map:parameter name="handler" value="myhandler"/>
      --------
     <map:transform src="stylesheets/mystylesheet.xslt">
             <map:parameter name="user-id" value="{ID}"/>
      </map:transform>
     --------
</map:act>

Hope this helps

Peter
>
> hello, all
>  
> I had met a strange problem. I had write a pipeline to read session 
> context, it correctly provide session information as it should be:
>
>  <resource>
>    <authentication>
>      <ID>0</ID>
>      <data>test</data>
>      <type>cocoon.authentication</type>
>      <media>html</media>
>   </resource>
> </authentication>
>  
> but when I try to use
>
> <map:parameter name="user-id" value 
> ="{session-context:authentication/authentication/ID}"/>
>
> in sitemap, it couldn't get any value.
>
> anybody can give me some hints?
>

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


Mime
View raw message