Hello all,

I have a problem using session between blocks.
I have to block Block1 and Block2 with Block1 having a dependency on Block2.
To connect the blocks I make use of ServletService and everything works just
fine, except for the session.

case 1:
If I create a session and set up a session-attribute in block1, I can't get
access to it from block2 while performing [mvn jetty:run] on Block1
(sessionAttributeGenerator output only the empty "root" element).

case 2:
If I create a session and set up a session-attribute in Block 2 this time, I
can't output the session-attribute while performing [mvn jetty:run] on
Block1 (sessionAttributeGenerator output only the empty "root" element).

Of course if I perform [mvn jetty:run] on Block2, I get my
session-attribute.

**************

It seems to me, if I run Block1 no session functionalities are allowed in
blocks dependencies.
Is there any way to get access to session from dependencies?

I have an xml configuration file set up in Block1 which need to be available
on regular basis for Block2 without passing it, each time, as POST with
ServletService. 

My idea is to save this small file in the session for the time of the
processing.

Thanks,

Josh

-- 
View this message in context: 
http://www.nabble.com/2.2---problem-with-session-between-blocks---no-access-to-session-from-block-dependency-tp15920708p15920708.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to