By nature of using ServletModule, you can have your Handler class injected with Provider<HttpServletRequest>. Within execute(), call .get() on this provider, and then seed the scope by setting the request attribute. This should handle the scoping.
Fred On Tue, Sep 6, 2011 at 7:14 PM, Mark Nuttall-Smith < [email protected]> wrote: > Hi Fred, > > Thanks for the answer. I read the RequestScope documentation, and it > certainly seems like the right thing to do be doing - but when the request > is encapsulated in a command (I'm using gwtp) I'm not sure how I can access > the action.params object I need to build the Portfolio in a filter class, in > order to seed the requestscope. > > Is a filter what you would suggest I use? Is this really a question for the > gwtp guys? > > Thanks, > Mark > -- You received this message because you are subscribed to the Google Groups "google-guice" 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-guice?hl=en.
