Comment #4 on issue 379 by [email protected]: Forwarding to Servlet
Broken w/ Parameters
http://code.google.com/p/google-guice/issues/detail?id=379
This issue is similar to
https://code.google.com/p/google-guice/issues/detail?id=372, but is not
fixed by it...
Simple example:
* Create a GuiceServletContextListener with
filter("/*").through(Filter1.class);
serve("/getfile").with(Servlet1.class);
* Filter1 implementation
public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException, ServletException {
request.getRequestDispatcher("/getfile?foo=bar").forward(request,
response);
}
* Servlet1 implementation
protected void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
super.doGet(req, resp);
}
* Guice: Requesting any url will go through Filter1, but won't call doGet
on Servlet1
* Classic web.xml: Requesting any url will go through FIlter1 and
Servlet1.doGet()
In our real-world use-case, we currently utilize the urlrewritefilter and
have rules like:
<rule enabled="true">
<from>^(/extern/.*)$</from>
<to>/getfile?file=$1</to>
</rule>
But the servlet bound to /getfile is never called when using
guice-servlet...
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.