[EMAIL PROTECTED] wrote:
Hi,
I want to access the UserManager inside a portlet class using JS-2. I wrote the
following code:
UserManager userManager = (UserManager)getPortletContext().getAttribute("cps:
UserManager");
Actually, I found this code in the JS-2 samples. I am not getting from where
the attribute "cps:UserManager" is coming. If I run the above code I receive
userManager as null.
Can you please guide me about getting UserManager in JS-2?
Add to your jetspeed-portlet.xml:
<js:services>
<js:service name='UserManager'/>
</js:services>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]