Status: New
Owner: ----
New issue 549 by qk168899: Use getRequestDispatcher forward cause page not
found
http://code.google.com/p/google-guice/issues/detail?id=549
In web.xml, I set
<servlet>
<servlet-name>s</servlet-name>
<servlet-class>guice.SimpleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>s</servlet-name>
<url-pattern>/bug</url-pattern>
</servlet-mapping>
in this servlet, it has only one line, forward to next page
request.getRequestDispatcher("/forward.zul").forward(request, response);
When I link to
http://localhost:9080/zkdemo/bug
It can fprward to forward.zul page
But when I use guice to config, it won't work
<filter>
<filter-name>guiceFilter</filter-name>
<filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>guiceFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<display-name>Guice initialization</display-name>
<listener-class>guice.GuiceContextListener</listener-class>
</listener>
Attachments:
SimpleServlet.java 899 bytes
GuiceModule.java 1.6 KB
--
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.