You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "Ford, Jennifer M." <JE...@SOUTHERNCO.COM> on 2007/10/01 16:50:09 UTC

RE: (newbie) How to get the current user

In your doView method, use the first parameter (usually named request)
to access the user:

String username = request.getUserPrincipal().getName()

-----Original Message-----
From: ypomonh [mailto:ypomonh@freemail.gr] 
Sent: Sunday, September 30, 2007 4:40 AM
To: jetspeed-user@portals.apache.org
Subject: (newbie) How to get the current user

How can I get the current logged-on user (eg. "admin", "user" etc.)
inside my portlet in Jetspeed 2?

Not in JSP (view) but in my java!


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org