четверг, 6 ноября 2014 г.

WebSphere portal 8.5. Access user profile information in portlet jsp

If you want to output the user first name and last name in portlet jsp here how you can do it:
<c:set var="gName" value="${wp.user['givenName']}"/>
<c:if test="${gName ne null}">
<c:set var="givenName" value="${gName[0]}"/>
</c:if>
<span class="login"><c:out value="${givenName}" /> <c:out value="${wp.user['sn']}" /></span>

Portal provides the wp bean for access in theme and portlets.