> -----Original Message-----
> From: Baer Peter [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 1:40 PM
> To: cocoon-users
> Subject: Re: RE: How to put user data into
> SunspotDemoPortal-session at
> logontime
>
>
> Thanks for the reply. It works. We can get the parameter out of the
> session now.
>
> However, what we actually need is a single value which we can
> pass as a
> parameter to the following generator or transformer.
>
> <map:generate src="application.xml">
> <map:parameter name="user_id" value="{session/user/name}"/>
> </map:generate>
>
> Thus we could generate user-specific menus at runtime. Eg,
> the options
> in drop-down menu could depend on the region the user belongs to.
I think you can make something similar
<map:generate src="menu.xml">
<map:transform type="sunshine"/>
in the menu.xml you can write:
<sunshine:include>
<sunshine:connection>
<sunshine:target>
cocoon://personalized_menu.xml?user=<sunshine:getxml
context="sunSpot" path="session/user/name"/> </sunshine:target>
</sunshine:connection>
</sunshine:include>
You have to make a personalized_menu.xml stream the generates the menu based on user
parameter.
On the other hand I don't understand why I can't read/write sunShine context object in
the generation phase. It would be very flexible If I could use -say- a sunshine
logicsheet to handle context objects.
peter
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>