I've not tried this out, I'm not setup for servlet's at the moment, but your
read/write loop probably needs some error checking. Looking at the JDK docs,
you might need to be using checkError() rather than relying on an exception to
be thrown when there is an IO error.
I've not tried this out, I'm not setup for servlet's at the moment, but your read/write loop probably needs some error checking. Looking at the JDK docs, you might need to be using checkError() rather than relying on an exception to be thrown when there is an IO error.