Tuesday, July 27, 2010

Storing an object at the client during a request

Hello,

How can I store an object on the client side during an entire request
and make it accessible to multiple presenters in a MVP application?

I am currently retrieving the User object in a servlet filter and
putting it on the request, like so

// get User by cookie
User user = sercurityService.getCurrentUser();
// Add to request
req.setAttribute("user", user);
// Go ahead
chain.doFilter(req, res);

So, how would I now store it on the client side and access it from my
presenters?

Best, S

--
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-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment