You do have access to the request, response and session from a GWT's
RPC service.    In your service impl (class that extends
RemoteServiceServlet) just call getThreadLocalRequest()  or
getThreadLocalResponse().   Then you can get access to the HttpSession
and securely keep the username just as you would with jsp+servlet or
whatever.


On Jul 8, 12:39 pm, 任胜韦 <[email protected]> wrote:
> if i work under jsp + servlet, i can set the username into session,and then
> the servlet can get the username from session anytime.but under GWT's RPC
> service , we see there is no request(&response) ,so you cannot get the
> session.
> i have to send the username as a parameter everytime i make a RPC,
>
> is there good solution for my problem?
>
> --XiaoR
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to