found it , comment out the cauth and uncomment the auth in cocoon.xconf.
johnson
Ralph Goers 提到:
> Are you using the sample configuration or your own? I believe the
> samples don't use authentication-fw anymore.
>
> johnson wrote:
>
>> HI!
>>
>> I've application in 2.1.10 portal, I can get the user id by flow in
>> 2.1.7 with this code
>>
>> 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);
>>
>> but in 2.1.10 it's not work, what's changed.
>>
>> Best Regards
>>
>> johsnon
>>
>> ---------------------------------------------------------------------
>> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]