You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Josias Thoeny <jo...@wyona.com> on 2005/04/06 11:21:03 UTC

Session attribute in session transformer

Hi,

I have a session attribute which is set in a Java class using 
session.setAttribute("myattribute", value);

Is it possible to access this attribute with the SessionTransformer?

Maybe something like this in the xml:
<session:getxml context="session" path="@myattribute"/>

Everything I tried didn't work... which would be the correct context?
I've read the docu of the SessionTransformer but couldn't find anything
about session attributes.
(I know I can get the attribute with the SessionAttributeModule and add
it to the xml with an xslt, but since I need the SessionTransformer step
anyway (for something else), I wanted to do it right there.)

Any ideas?

Thanks,
Josias






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