I am trying to get the user attributes (user name) from a servlet
filter in my struts application. I have the <user-attribute> defined
in portlet.xml. However when I try to get the user attributes from the
PortletRequest, I am getting null. Is there something I am missing?
The code gets the PortletRequest first and then tries to get the
USER_INFO  attribute from the PortletRequest.

PortletRequest portletReq =
(PortletRequest)request.getAttribute("javax.portlet.request");
Map userInfo = (Map) portletReq.getAttribute(PortletRequest.USER_INFO);
This returns a null for userInfo.

Can someone suggest a better way to getting the User information from
the struts portlet?

Thanks,
Hema

-- 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Hema Menon

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

Reply via email to