Hi Steve,

I think you need to extend the StrutsPortlet by overriding the 
init(PortletConfig config) method. In your init(PortletConfig config) method, 
get the group manager component after super.init() and save it as a member as 
jetspeed-service guide document says. Of course, you need to edit 
jetspeed-portlet.xml also.

Regards,

Woonsan


--- On Tue, 11/11/08, Ashwill, Steve (Facilities & Services) <[EMAIL 
PROTECTED]> wrote:

> From: Ashwill, Steve (Facilities & Services) <[EMAIL PROTECTED]>
> Subject: Accessing the GroupManager when running a struts app as a portal
> To: "Jetspeed Users List" <[email protected]>
> Date: Tuesday, November 11, 2008, 10:06 PM
> I'm running an app in a portal using the struts bridge.
> It appears to be
> set-up similar to the JPetstorePortlet description I found
> at 
> http://www.ja-sig.org/wiki/display/PLT/Struts+Bridge
> However I can't seem to find a way to get the Jetspeed
> GroupManager . 
> 
> I've tried to follow the steps outlined at:
> http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
> <http://portals.apache.org/tutorials/jetspeed-2/05/jetspeed-service.html
> > 
> with no luck. 
>  
> Can anyone tell me how I get the GroupManager or some other
> way to find
> out what groups a user is a member of?
>  
>       
>  
> Steven Ashwill
>  
>  
> p.s
> I get the user name with a simple:
> username = request.getUserPrincipal().getName();


      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to