Servlet Session

6 views
Skip to first unread message

guest23

unread,
Mar 22, 2010, 7:18:48 AM3/22/10
to Google Web Toolkit
Hi there,

gwt rpc is a nice feature!

Is it possible to get a HTTP Session inside RemoteServiceServlet?

User does login over normal Servlet. I store the login token in
session.

Thanks for help!

rudolf michael

unread,
Mar 23, 2010, 12:14:50 PM3/23/10
to google-we...@googlegroups.com
of course, RemoteServiceServlet is nothing else other than an HTTPServlet but with a special handling to make it an RPC servlet.


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


Chi H

unread,
Mar 23, 2010, 10:24:48 PM3/23/10
to Google Web Toolkit
RemoteServiceServlet has a getThreadLocalRequest() method which
returns a HttpServletRequest.
With the HttpServletRequest, you can call the standard getSession()
method

guest23

unread,
Apr 21, 2010, 3:29:09 AM4/21/10
to Google Web Toolkit
Thank you :)!

On Mar 24, 4:24 am, Chi H <c...@chi.ca> wrote:
> RemoteServiceServlet has a getThreadLocalRequest() method which
> returns a HttpServletRequest.
> With the HttpServletRequest, you can call the standard getSession()
> method
>
> On Mar 22, 5:18 am,guest23<dav2...@gmail.com> wrote:
>
> > Hi there,
>
> > gwt rpc is a nice feature!
>
> > Is it possible to get a HTTP Session inside RemoteServiceServlet?
>
> > User does login over normal Servlet. I store the login token in
> > session.
>
> > Thanks for help!

Reply all
Reply to author
Forward
0 new messages