Try creating jetspeed-portlet.xml and add the UserManager entry.  Like this:

<portlet-app>
<js:services>
      <js:service name='UserManager'/>
  </js:services>
</portlet-app>


On 6/23/06, Tushar Kapadi <[EMAIL PROTECTED] > wrote:

Hello,

We have a third party application. That application needs the input from
the Jetspeed portal. We need to pass username, manager name,
organization to the struts based portlet from the portal.

We have created a portlet class which we are calling from Portlet.xml
file. In this portlet class we are do following:

request.getPortletSession().setAttribute("loggedUser",request.getUserPri
ncipal().getName(),PortletSession.APPLICATION_SCOPE);

This gives us the logged user name.

Question is, how to get the other information? How to get the
organization and supervisor?

We tried doing following in the same portlet class but it is returning
null...
userManager = (UserManager) getPortletContext().getAttribute(
CommonPortletServices.CPS_USER_MANAGER_COMPONENT );

Any help would be really appreciated.

Thanks,
--Tushar

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


Reply via email to