cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johann Romefort" <romef...@club-internet.fr>
Subject Re: Getting session context data from Input Module
Date Fri, 18 Oct 2002 16:52:50 GMT
Reply to my own message, my fault, it works now :)

Johann




----- Original Message -----
From: "Johann Romefort" <romefort@club-internet.fr>
To: <cocoon-dev@xml.apache.org>
Sent: Friday, October 18, 2002 6:31 PM
Subject: Getting session context data from Input Module


> Hi,
>
> Is there anyway to authentication data from a sunrise session context
> directly into the sitemap with the help
> of the Input Module. In the documentation I found the following, but it
does
> not seems to work for me (last CVS version)
>
> -------
> Both actions, the auth-protect and the auth-loggedIn action return - if
the
> user is logged in for the given handler - all values from the context to
the
> sitemap, e.g. ID, role etc. These values can be used within the other
> components:
>
> <map:match pattern"protected">
>   <map:act type="auth-protect">  <!-- protect the resource -->
>     <map:parameter name="handler" value="myhandler"/>
>
>     <!-- Append the ID of the user to the file name -->
>     <map:generate src="resource_{ID}.xml"/>
>     <map:transform src="toHTML"/>
>     <map:serialize/>
>
>   </map:act>
> </map:match>
>
> ----
>
>
> Thanks in advance!!
>
> johann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


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


Mime
View raw message