portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Sean Taylor <da...@bluesunrise.com>
Subject Re: UserManager in JetSpeed-2
Date Wed, 20 Dec 2006 19:06:15 GMT

anand.kulkarni@e-zest.net 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: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message