Hi,
I need to send a very very big set of data within a servlet to the users
browser. But if the users canceles the transmission or closes its
browser I need to cancel writting the data to save resources. But if the
user canceles the response during transmission I don't get a
Not sure about using SocketWriteException. A less elegant approach might be
to put a javascript function in the page that is called when the window is
closed. That JS function could call a servlet that you can write. (This is
a bit OT though because it's really to do with HTML rather than
An IOException should be thrown by write sometime after the socket is
disconnected. (It may vary due to buffering)
Tomcat doesn't log that IOException since it is so common but it can be
caught if your decide to do so.
-Tim
Stephan Coboos wrote:
Hi,
I need to send a very very big set of data