cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <>
Subject Re: Passing a parameter to flow from sitemap [SOLVED]
Date Thu, 19 Jan 2006 18:28:09 GMT
I knew there had to be a simple answer, many thanx to Jean-Baptiste Quenot on the dev mailing
(in answer to a question from Derek Hohls):

Why don't you use the session-context input module?


<map:parameter name="userId" value="{session-context:authentication/authentication/ID}"/>

Or just:

<map:parameter name="userId" value="{ID}"/>

The above expression works because AuthAction (auth-protect)
returns a map of parameters available in the sitemap.


Geert Josten wrote:
> Hmmm, yes, I see what you mean. Looks a bit similar to the way on 
> accesses global settings from a sitemap. It would be nicer if there was 
> an input module for the authentication context settings, so you could 
> replace {session-attr:userID} with for instance {authentication:ID}.
> Cheers,
> Geert
> PS: good search by the way!
> Derek Hohls wrote:
>> Geert
>> I finally tracked down a fragment of code, posted by Stavros:
>> in which the userID is accessed without having to pass a parameter 
>> from the sitemap.  The code looks complex and unwieldy (to my non-
>> Java guru eye), but it works!
>> Thanks
>> Derek
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Drs. G.P.H. Josten

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199

De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is

uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen,
wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message