You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Wyn Easton <wy...@yahoo.com> on 2000/11/11 11:24:39 UTC

RequestDispatcher include()

Hello,

I'm having trouble using the include() method of RequestDispatcher.
I have a servlet that is accessed via a URL (servlet_A).
servlet_A gets an input stream from the request and reads some data
(all being sent).
Then based on what was read, servlet_A will create a RequestDispatcher
for servlet_B.
When I call the include() method an IllegalArgument Excpetion
is thrown with "Short Read" displayed as part of the exception text.
I was looking at the source of RequestDispatcherImpl and noticed
something about a side effect of reading the form data when getting the
parameters from the request. I do not close my input stream that I got
before calling include().  Could this have something to do with the
exception?  Should I close my input stream before the include()?
I don't know what Argument the exception is referring to.
Thanks.




=====
Wyn Easton
wyn_easton@yahoo.com

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one Place.
http://shopping.yahoo.com/