Comment #3 on issue 379 by [email protected]: Forwarding to Servlet
Broken w/ Parameters
http://code.google.com/p/google-guice/issues/detail?id=379
It is legal according to the servlet spec. In 2.4 (which is what I happened
to have) it says:
SRV.8.1.1
Query Strings in Request Dispatcher Paths
The ServletContext and ServletRequest methods that create RequestDispatcher
objects using path information allow the optional attachment of query string
information to the path. For example, a Developer may obtain a
RequestDispatcher
by using the following code:
String path = “/raisins.jsp?orderno=5”;
RequestDispatcher rd = context.getRequestDispatcher(path);
rd.include(request, response);
Parameters specified in the query string used to create the
RequestDispatcher
take precedence over other parameters of the same name passed to the
included
servlet. The parameters associated with a RequestDispatcher are scoped to
apply
only for the duration of the include or forward call.
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" 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-dev?hl=en.