cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Müller (JIRA) <j...@apache.org>
Subject [jira] Commented: (COCOON-2194) Session-attr set in dependency blocks destroyed after servlet call.
Date Fri, 22 May 2009 18:20:45 GMT

    [ https://issues.apache.org/jira/browse/COCOON-2194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12712190#action_12712190
] 

Thomas Müller commented on COCOON-2194:
---------------------------------------

Is this problem already solved? I have the same problem.

> Session-attr set in dependency blocks destroyed after servlet call.
> -------------------------------------------------------------------
>
>                 Key: COCOON-2194
>                 URL: https://issues.apache.org/jira/browse/COCOON-2194
>             Project: Cocoon
>          Issue Type: Bug
>          Components: * Cocoon Core, - Servlet service framework
>    Affects Versions: 2.2-dev (Current SVN)
>            Reporter: Josh
>
> I have a main block (block-a) which makes calls to a depend block (block-b).
> Block-b has access to the global session.
> At the first call from block-a, block-b creates a session-attribute "test".
> I noticed this session-attribute can be retrieved within block-b (right after setting
it), but not within block-a.
> At the second call from block-a, block-b needs to read the session-attribute "test" it
has created at the first call, but cannot find it anymore: session-attr "test" doesn't exists.
> It seems session-attributes set up in a dependency block are only available for the time
of the request. This means if any other request to the block is made, the session-attributes
will not be available anymore.
> Is there a way to set a session-attribute in a dependent block and make it available
for the duration of the global session? 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message