Hi guys!
I've written a Servlet class looking like:
public class AccountServiceImpl extends RemoteServiceServlet
implements AccountService {
....
public void login(String email, String pwd) throws WrongLoginException
{
Account ac = accountdao.Login(email, pwd);
if( ac == null )
throw new WrongLoginException();
MySession.setAccount( getThreadLocalRequest(), ac);
}
}
In my session I simply do:
public static void setAccount( HttpServletRequest request, Account a )
{
request.getSession().setAttribute( "userid", a.getId() );
request.getSession().setAttribute( "isadmin", a.isAdmin() );
}
As my post says, getThreadLocalRequest always return null...
Has anybody got some ideas, because all related problems I found,
point out to a solution that looks like my code...
thanks in advance..
greets
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---