One option:
You will have to pass the Session instance into this class from the calling
class; so that this class can use the session to retrieve the User.
public class Foo{
public User getLoggedUser(final HttpSession session) {
// retrieve it here
}
}
HTH,
Kamal
---------------------------------------
http://lkamal.blogspot.com
On Thu, Aug 20, 2009 at 11:43 PM, Tiago Mesquita <[email protected]> wrote:
> Hi Everyone,
> So, i'm with a problem that maybe you guys can help me...
> i need to get the session object outside a class that extend
> RemoteServiceServlet..
>
> like, i'll write one example here:
>
> public class Foo{
> public User getLoggedUser(){
> // How to get logged user here? if this class (Foo) don't extend
> RemoteServiceServlet??
> }
> }
>
> Tnx All!!!
>
> --
> Utilize o "CCO" na hora de encaminhar suas msgs,
> isso impossibilita que programas espiões capturem os
> e-mails de seus contatos e façam deles alvo de Spam.
>
> Atenciosamente,
> Tiago Mesquita A. C.
> http://twitter.com/tiagomac
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---