Tomcat 6.0.20 Java 1.6.0_20-b02 Linux 2.6.32-22 I have a servlet that writes CSV content to the HTTPServletResponse. It uses Content-disposition of attachment and ContentType text/x-csv.
The servlet creates a PrintWriter something like (pseudo code): new PrintWriter(new BufferedWriter(response.getWriter())); That is fine basically. Testing in Firefox, you get the download progress popup widget thing, and it tells you how much content has been downloaded so far and the transfer rate. My issue is what is supposed to happen if the user clicks the cancel button on that popup? I initially thought I'd get an exception on the server like a "broken pipe" exception or something. But it just keeps chugging along on the server writing content and flushing it periodically. I want to get an exception so I can stop processing data on the server when the user cancels. Is there any configuration in Tomcat that might help with this?? I looked in server.xml; I thought maybe the HTTP Connector might have something but don't see anything in the reference. http://tomcat.apache.org/tomcat-6.0-doc/config/http.html Thanks for any advice. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org