Forums de discussion
How to get Logged in user email id?
Arun Kumar Ramachandran, modifié il y a 13 années.
How to get Logged in user email id?
Regular Member Publications: 228 Date d'inscription: 28/06/10 Publications récentes
Hi all,
How toget the logged in user email id in portlet and display. Please anybody help me to understandable.
Thanks
Arun
How toget the logged in user email id in portlet and display. Please anybody help me to understandable.
Thanks
Arun
jelmer kuperus, modifié il y a 13 années.
RE: How to get Logged in user email id?
Liferay Legend Publications: 1191 Date d'inscription: 10/03/10 Publications récentes
ThemeDisplay themeDisplay = (ThemeDisplay) request.getAttribute(WebKeys.THEME_DISPLAY);
themeDisplay.getUser().getDisplayEmailAddress()
themeDisplay.getUser().getDisplayEmailAddress()
Torben Wehlert, modifié il y a 13 années.
RE: How to get Logged in user email id?
New Member Publications: 4 Date d'inscription: 27/04/10 Publications récentes
You could use the create script of the liferay-plugins-SDK to generate a portlet and then change the view.jsp to look like this:
<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>
<liferay-theme:defineobjects />
Mail-Adress: <%= user.getEmailAddress() %>
Donatello Pugliese, modifié il y a 11 années.
RE: How to get Logged in user email id?
New Member Publications: 2 Date d'inscription: 26/01/09 Publications récentes
Goodmorning, I have the same problem with screen name. I want, after registration, userscreename of user with getUserByScreename, but this method go to exception.
Please Help me
reguard
Donatello
Please Help me
reguard
Donatello
Jitendra Rajput, modifié il y a 11 années.
RE: How to get Logged in user email id?
Liferay Master Publications: 875 Date d'inscription: 07/01/11 Publications récentes
Hi Donatello
Can you please share server error log ?
Regards
Jitendra
Can you please share server error log ?
Regards
Jitendra
Amit Doshi, modifié il y a 11 années.
RE: How to get Logged in user email id?
Liferay Master Publications: 550 Date d'inscription: 29/12/10 Publications récentes
Donatello:-
Can you please share the exception log that you are getting ?
Regards,
Amit Doshi
Donatello Pugliese:
Goodmorning, I have the same problem with screen name. I want, after registration, userscreename of user with getUserByScreename, but this method go to exception.
Please Help me
reguard
Donatello
Can you please share the exception log that you are getting ?
Regards,
Amit Doshi
Nisarg Parikh, modifié il y a 11 années.
RE: How to get Logged in user email id?
Expert Publications: 262 Date d'inscription: 31/12/09 Publications récentes
Which exception are you getting?
Refer API for User and you will get idea how to get screenname or any other details for logged in user.
http://docs.liferay.com/portal/6.0/javadocs/com/liferay/portal/model/User.html
Hope that will help you.
-Nisarg
Refer API for User and you will get idea how to get screenname or any other details for logged in user.
http://docs.liferay.com/portal/6.0/javadocs/com/liferay/portal/model/User.html
Hope that will help you.
-Nisarg
Jitendra Rajput, modifié il y a 11 années.
RE: How to get Logged in user email id?
Liferay Master Publications: 875 Date d'inscription: 07/01/11 Publications récentes
You can also get UserId from portal util
PortalUtil.getUserId(portletRequest)
Santosh B Biradar, modifié il y a 6 années.
RE: How to get Logged in user email id?
Junior Member Publications: 41 Date d'inscription: 04/08/15 Publications récentes
Hi All,
If you want to get LoggedIn User Emailddress, Please try below code
themeDisplay.getUser().getDisplayEmailAddress();
Thanks
Santosh B B(Zensar Technology)
If you want to get LoggedIn User Emailddress, Please try below code
themeDisplay.getUser().getDisplayEmailAddress();
Thanks
Santosh B B(Zensar Technology)