You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/02/02 08:21:32 UTC
[Bug 450] New - RequestDispatcher.forward() broken with custom ServletRequest implementations BugRat Report#771
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=450
*** shadow/450 Thu Feb 1 23:21:32 2001
--- shadow/450.tmp.13247 Thu Feb 1 23:21:32 2001
***************
*** 0 ****
--- 1,21 ----
+ +============================================================================+
+ | RequestDispatcher.forward() broken with custom ServletRequest implementati |
+ +----------------------------------------------------------------------------+
+ | Bug #: 450 Product: Tomcat 3 |
+ | Status: RESOLVED Version: Nightly Build |
+ | Resolution: INVALID Platform: All |
+ | Severity: Normal OS/Version: All |
+ | Priority: High Component: Servlet |
+ +----------------------------------------------------------------------------+
+ | Assigned To: bugzilla@apache.org |
+ | Reported By: anonymous-bug@cortexity.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ When chaining services via RequestDispatcher.forward(ServletRequest req, ServletResponse res), there is no way to modify the data in req. For instance, if I wished to perform alterations on the request data and create my own implementation of ServletRequest. I cannot then use an instance of my implementation this with RequestDispatcher.forward() because the first thing it attempts to do is cast the ServletRequest to org.apache.tomcat.facade.HttpServletRequestFacade. This makes for some rather tame and incomplete chaining.
+
+ ------- Additional Comments From cmanolache@yahoo.com 2001-02-01 23:21 -------
+ Changing the request is explicitely forbiden in servlet 2.2, you must
+ use filters in 2.3