You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by venkat nagaraju <pv...@yahoo.co.in> on 2003/12/09 11:19:47 UTC
Problem in finding the logged in user
Hi all,
I instantiated the following class
org.apache.turbine.om.security.TurbineUser and invoked
the method getName() hoping that it returns name of
the user who has logged in. But it hasn't returned
anything.
I need to findout which user has logged in . How to
go about it. Any help in this regard is appreciated.
Thanks in advance.
raju
________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: Problem in finding the logged in user
Posted by Holger Dewes <h....@insiders.de>.
> -----Original Message-----
> From: venkat nagaraju [mailto:pvnrajumsis@yahoo.co.in]
> Sent: Tuesday, December 09, 2003 11:40 AM
> To: Jetspeed Users List
> Subject: RE: Problem in finding the logged in user
>
>
> Hi
>
> I have written my own servlet and in one of the
> methods i want to know who has logged in.Hope i am
> clear.
Just out of curiosity: why your own servlet?
Anyway, in that case I would have a look at the source code of the
Turbine servlet (org.apache.turbine.Turbine) and see how Turbine
retrieves the current user. It's probably somewhere in the session.
Maybe have a look at the session.
--
Holger Dewes
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: Problem in finding the logged in user
Posted by venkat nagaraju <pv...@yahoo.co.in>.
Hi
I have written my own servlet and in one of the
methods i want to know who has logged in.Hope i am
clear.
raju
--- Holger Dewes <h....@insiders.de> wrote: >
> > -----Original Message-----
> > From: venkat nagaraju
> [mailto:pvnrajumsis@yahoo.co.in]
> > Sent: Tuesday, December 09, 2003 11:20 AM
> > To: jetspeed-user@jakarta.apache.org
> > Subject: Problem in finding the logged in user
> >
> >
> > Hi all,
> >
> > I instantiated the following class
> > org.apache.turbine.om.security.TurbineUser and
> invoked
> > the method getName() hoping that it returns name
> of
> > the user who has logged in. But it hasn't returned
> > anything.
> >
> > I need to findout which user has logged in . How
> to
> > go about it. Any help in this regard is
> appreciated.
>
> Hello,
>
> it would help if you told us in which context. But
> you probably have a
> RunData instance, which gives you the current user
> using
> RunData.getUser().
>
> HTH
>
> --
> Holger Dewes
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@jakarta.apache.org
>
________________________________________________________________________
Yahoo! India Mobile: Download the latest polyphonic ringtones.
Go to http://in.mobile.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
RE: Problem in finding the logged in user
Posted by Holger Dewes <h....@insiders.de>.
> -----Original Message-----
> From: venkat nagaraju [mailto:pvnrajumsis@yahoo.co.in]
> Sent: Tuesday, December 09, 2003 11:20 AM
> To: jetspeed-user@jakarta.apache.org
> Subject: Problem in finding the logged in user
>
>
> Hi all,
>
> I instantiated the following class
> org.apache.turbine.om.security.TurbineUser and invoked
> the method getName() hoping that it returns name of
> the user who has logged in. But it hasn't returned
> anything.
>
> I need to findout which user has logged in . How to
> go about it. Any help in this regard is appreciated.
Hello,
it would help if you told us in which context. But you probably have a
RunData instance, which gives you the current user using
RunData.getUser().
HTH
--
Holger Dewes
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org