got it, lack of this line var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var authContext = contextMan.getContext("authentication"); var userFrag = authContext.getXML("/authentication/ID"); var user = Packages.org.apache.cocoon.xml.dom.DOMUtil.getValueOfNode(userFrag); ---this
許議中 提到: > Hi! > > How to get authentication contex in auth-fw(flow), in the samples.js login > function, I want to get some info from it, I use this method > > if (auth_login(handler, null, cocoon.parameters)) { > var contextMan = > cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); > var authContext = contextMan.getContext("authentication"); > var authentication = authContext.getXML("/authentication"); > print("authentication = "+authentication); > success(); > > but the authentication show [#document-fragment: null]. > > Best Regards > > johnson > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]