Have a look at PortletRequest.getRemoteUser
Martin
On 11/2/05, carminux <[EMAIL PROTECTED]> wrote:
> hi to everybody, I'm newbie in portal development.
> I want to build a portlet for jetspeed 2 that visualizes the name of
> the user that has effected the login in the portal.
> Does a method exist similar to getUserName ( )?
>
> thanks to everybody.
>
>
> public class Hello extends GenericPortlet{
>
> public void init(PortletConfig portletConfig) throws
> UnavailableException, PortletException
> {
> super.init(portletConfig);
> }
>
> public void doView(RenderRequest request, RenderResponse response)
> throws PortletException, IOException
> {
> String user= getUserNane(); //??
> System.out.println("user is: "+user);
> }
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]