This content has been marked as final.
Show 1 reply
-
1. Re: How to retrieve username?
pshaktig Mar 24, 2008 7:43 AM (in response to pshaktig)Okay found it out.
In my portlet I set a session variable as
PortletSession session = request.getPortletSession(true);
session.setAttribute("userName", user, PortletSession.APPLICATION_SCOPE)
Since the varialbe is app scoped it is available in servlet as session.getAttribute("userName").
Thanks,
Shakti