cocoon-users mailing list archives

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

http://wiki.apache.org/cocoon/XspSessionFw

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
>cocoon-request
>Object.
>
>>>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)
>this.manager.lookup(ContextManager.ROLE);
>   SessionContext sessionContext =
>contextManager.getContext("authentication");
>   String role = sessionContext.getValueOfNode("/authentication/role");
>   DocumentFragment documentFragment =
>sessionContext.getXML("/authentication/data/mydata");
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message