Re: Retrieving User object in Controller

Woonsan Ko <[email protected]>
Newsgroups gmane.comp.jakarta.jetspeed.user
Message-ID <[email protected]>
You may use javax.portlet.PortletRequest#getUserPrincipal()#getName().
Also refer to [1] if you need more user attributes.

[1] http://portals.apache.org/jetspeed-2/deployguide/guide-user-attributes.html


----- Original Message -----
> From: pierounix <[email protected]>
> To: [email protected]
> Cc: 
> Sent: Wednesday, December 28, 2011 7:25 AM
> Subject: Retrieving User object in Controller
> 
> 
> I'm using Spring MVC Portlet for my Portlet Application and I cannot find a
> way to retrieve the username of the current user. How should I access the
> User Object in my controller???
> -- 
> View this message in context: 
> http://old.nabble.com/Retrieving-User-object-in-Controller-tp33045012p33045012.html
> Sent from the Jetspeed - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.