[jboss-user] [JBoss Portal] - Re: How to retrieve username?

pshaktig do-not-reply at jboss.com
Mon Mar 24 07:43:04 EDT 2008


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

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138510#4138510

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138510



More information about the jboss-user mailing list