Status: New
Owner: ----

New issue 566 by twl.elli: Guice Servlet injects a wrong request
http://code.google.com/p/google-guice/issues/detail?id=566

Guice wraps HttpServletRequest with a wrapper ManagedFilterPipeline. This wrapper is passed to filters and servlets. However this wrapper is not injected to objects. The injected request is the servers original HttpServletRequest.

The result is that an injected object cannot do a forward to a Servlet configured in guice, since the servers request is unaware of servlets configured in guice.

Typical case is a controller forwarding to a template Servlet. Currently if the controller is injected by guice, the template Servlet cannot be in guice in order to be found. It has to be in web.xml

Expected:
Inject ManagedFilterPipeline wrapper to beans.
Actual:
The injected request is the original server object.

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

Reply via email to