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/03/09 23:15:47 UTC

[Bug 142] New - Feature to forward requests using request dispatcher even if the servlet input stream is empty BugRat Report#161

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=142

*** shadow/142	Fri Mar  9 14:15:47 2001
--- shadow/142.tmp.7443	Fri Mar  9 14:15:47 2001
***************
*** 0 ****
--- 1,19 ----
+ +============================================================================+
+ | Feature to forward requests using request dispatcher even if the servlet i |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 142                         Product: Tomcat 3                |
+ |       Status: UNCONFIRMED                 Version: 3.1.1 Final             |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: High                      Component: Servlet                 |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: Larry.Isaacs@sas.com                                         |
+ |  Reported By: joe@aztec.soft.net                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When i process multipart/form data in my servlet, I need to read the input stream to parse the binary data. I use HttpUtils.parsePostData to do this. Note that I do not use getParameter on the HttpRequest anywhere after this(since that would definitely fail - I have emptied the input stream into my own data structures). But I need to forward this request to a JSP now. The JSP uses my data structures for the form parameters (that i have passed in as attribute in the HTTP request). It looks like internally, tomcat uses the getParameter call on the http request while invoking the dispatcher.forward, which in turn calls httpUtils.parsePostData , thus landing up with a short read !!
+ 
+ Is there any way, the forward can happen with an empty input stream of parameters ?

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-dev-help@jakarta.apache.org