On 9 Jan, 16:53, Prashant Gupta <nextprash...@gmail.com> wrote:
> I tried following code, getting null all the time.
>
> public static HttpSession getSession(){
> return new ThreadLocal<HttpServletRequest>().get().getSession();
>
> }

You also need to create a filter where you actually put the data in
the TheadLocal. I am just about to go out, so I don't actually have
time to write the code for you. Sorry about that.

Regards,
Elias
-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.


Reply via email to