Getting User Attributes of a Logged in Liferay user

2.1k views Asked by At

How do I get the email ID of a logged in Liferay user (from within a portlet) ?

I referred to this link but to no avail.

1

There are 1 answers

0
FoX On

You can just use the following code in your JSP:

<%@ taglib uri="http://liferay.com/tld/theme" prefix="liferay-theme" %>

<%= user.getDisplayEmailAddress() %>