Thanx alot and Merry Christmas, ;) seems to work with the ContextManager.
Cheers, Stefan -----Ursprüngliche Nachricht----- Von: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 24. Dezember 2004 10:59 An: dev@cocoon.apache.org Betreff: RE: Retrieving AuthenticationContext from custom Action Stefan Pietschmann wrote: > > <SNIP/> > > My first question would be: > Which is the best way to obtain the authentication context? > Via the SessionManager, ContextManager.. or > AuthenticationContextProvider? Is there any striking difference? > > Second question of course: How do I get the context?? > The best way is to use the ContextManager. The SessionManager is a legacy component and the authenticationcontextprovider is an internal component. So, you fetch the context from the ContextManager like you did in your sample code and then using getXML("/authentication") you should get a DocumentFragment with the contents. Did you check if the fragment has children? Carsten