cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel McConaughy <>
Subject How to use {session-context} in sitemap?
Date Sat, 14 Aug 2004 18:45:45 GMT
I'm trying to access the session context from the sitemap using 
{session-context:session/attribute} syntax as described in the session 
docs but am getting an empty value.   It looks like I have properly set 
the session attribute but that the core.session-manager can't find it.  
What am I doing wrong? 
Cocoon 2.1.5, Tomcat 5.0.19

Thanks, joel

 From flow:

 cocoon.session.setAttribute('covers', 'sampledata/covers');
 var s = cocoon.session.getAttribute('covers');
 // At this point, s == 'sampledata/covers/'

 From sitemap.xmap:

 <map:match pattern="getImage">
mime-type="image/jpeg" />

 From core.log:


PARAM: 'covers' VALUE: 'sampledata/covers'

DEBUG   (2004-08-14) 11:33.37:252   [core.session-manager] 
(/cocoon/pp/getImage) http8080-Processor23/DefaultContextManager: BEGIN 
getContext name=session
DEBUG   (2004-08-14) 11:33.37:252   [core.session-manager] 
(/cocoon/pp/getImage) http8080-Processor23/DefaultContextManager: END 
getContext context=null

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

View raw message