Islam Tariq wrote:
>
> Hi,
>     I have been trying to work on writing the servlet that uploads a
> file with no luck.
>
> ....
>
> This is the error message I get when I push the upload button:
> A network error occurred while Netscape was receiving data.
> (Netscape error: Connection reset by peer)
> Try connecting again.

That just means the connection between the server and client was severed
prematurely.  It doesn't mean it's necessarily a client problem.  I
suggest you watch the server-side execution to see how far things go
before the problem hits (println() is your friend).  Also try various
files to upload, try different clients, try different servers.  See if
you can make anything work.  Once you have something working and
something failing you just narrow down the difference til you find the
problem.  Debugging 101.

-jh-

--
Jason Hunter
[EMAIL PROTECTED]
Book:    http://www.servlets.com/book
2.0 to 2.1: http://www.javaworld.com/jw-12-1998/jw-12-servletapi.html
2.1 to 2.2: http://www.javaworld.com/jw-10-1999/jw-10-servletapi.html

___________________________________________________________________________
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