I am doing servlet to servlet communication with an URLConnection object .
In the first servlet, I create the url to the second one, call the
openConnection, set DoOutput(true) and get the output stream.  I send my
parameters to the second servlet, close the stream, get the input stream on
the same connection to read the response and actually read it (exactly like
in the URLConnection part of the java networking tutorial).  In fact, I
don't really need to read the response but I've notice that the second
servlet doesn't seems to do it's job when I didn't read the response so I
do it.  With JDSK, it works perfectly but now that I use JRun, this is not
working anymore.  Jrun returns me an error page with an internal server
error: java.io.FileNotFoundException which I doesn't understand since I
didn't try to open any file!?  This error is generated by the
getInputStream() call on the URLConnection.
Does anybody have an idea on what could generate this?

Thanks,
Stephane

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to