cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Franosch, Heike" <>
Subject RE: accessing session context from stylesheet
Date Mon, 15 Apr 2002 10:42:29 GMT

first of all thanks for your answers.

> > Quite possibly the wrong way of doing things, but I use an 
> XSP to grab the
> > relevant session details then aggregate them so they are 
> available to use
> > in the stylesheet.
> >
maybe I try this one.

> But when this kind of problem arises, I usually ask myself:
> 1. "Why do I need it in the stylesheet?"
> 2. "Is my stylesheet for -style- or am I programming with it?"
> 3. "Can't I resolve this problem once and for all during Generation?"
> 4. "Isn't this better solved with a Transformer, since it 
> requires coding?"

Ok, maybe you are right, I am mixing things. But, what is styling?
I try to use a different name for it: presentation. I have xml data and
have to present it in voiceXML (using transformations ;-). And I need to
cut my data into pieces, so I have to do callbacks to my data.
Is this business or presentation? If I have html output I would not
need it, so it is presentation!
Ok, I am not using cocoon as it is meant to be ...

Something different:
I found the use-session-info. Can I use this to access the session?
I tried:
 <map:match pattern="testpackage/*/*"> 
   <map:act type="request">
     <map:parameter name="parameters" value="true"/>
   <map:transform type="xslt" src="testpackage/{1}/{2}.xsl">
       <map:parameter name="session-id" value="{session-id}"/>
       <map:parameter name="session-is-new" value="{session-is-new}"/>
   <map:serialize type="xml"/>


But I get no session. What's wrong?
One more question: If I get this running, do I get the same session id as
used from tomcat (this is essential)?

Thank you very much for your help.


Please check that your question has not already been answered in the
FAQ before posting. <>

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

View raw message