cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Gallardo <>
Subject Re: Access to SessionContext via ContextManager via Request possible?
Date Sun, 18 Sep 2005 04:00:26 GMT

Best Regards,

Antonio Gallardo.

Michael Wirz wrote:

>Hello Cocoon-Users!
>We are currently developing a webapplication using cocoon (2.1).
>For the content pages (lists, database stuff) we use xsps and call java
>methods from there.
>These methods deliver xml. The only argument they get from the xsp is a
>>>From within the java methods I'd like to access the contextManager and
>from there sessionContexts.
>Is this possible having only a request - object? How is it done? Do I
>have a contextManager object
>or reference in the xsp?
>If it is not possible to retrieve a contextManager from the request, is
>there any way to access
>the contextManager from within an xsp?
>Or do I have to write a generator or inherit from the xsp-generator?
>Thanks a lot for hints on that topic,
>Michael Wirz
>What I'd like to do is the following (found in former posts on this list):
>   ContextManager contextManager = (ContextManager)
>   SessionContext sessionContext =
>   String role = sessionContext.getValueOfNode("/authentication/role");
>   DocumentFragment documentFragment =

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

View raw message