Martin Dulisch <mdulisch <at> gmail.com> writes:

> 
> Have a look at PortletRequest.getRemoteUser
> 
> Martin

Right. You can also leverage getUserPrincipal and isUserInRole.

These are also be available in the RenderRequest so you could do this right in
your JSP (that is, provided the user Principal object is not null):

<%= renderRequest.getUserPrincipal().getName() %>

Have a look at the demo portlet webapp that ships with J2 for examples...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to