cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joel McConaughy <j...@displayware.com>
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:pipeline>
 <map:match pattern="getImage">
 <map:read 
src="{session-context:session/covers}/{request-param:upc}.jpg" 
mime-type="image/jpeg" />
</map:match>

 From core.log:

SESSION ATTRIBUTES:

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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message