cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geert Josten <Geert.Jos...@daidalos.nl>
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
list 
(in answer to a question from Derek Hohls):

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

Example:

<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.
<<

Cheers

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
>>  
>> POST SCRIPT:
>>
>> I finally tracked down a fragment of code, posted by Stavros:
>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=111662268832339&w=2
>>
>> 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: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

-- 
Drs. G.P.H. Josten
Consultant



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


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,
verzoeken 
wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.

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


Mime
View raw message