I have a
Struts action which iterates through a large List of data and displays it on a
JSP page. The resulting HTML file is almost 500 KBs. If the user stops loading the page or clicks another link before the page has loaded, thousands of "Error Flushing Output Stream" exceptions are thrown on my error log console. Apparently Struts 2 continues trying to flush the output even after the connection is closed by the client. Is there any way to stop Struts 2 from flushing the output stream after it encounters a failure? If I let the page load without interrupting it, I receive zero exceptions and everything works fine.
I tried adding the following line to the front of my JSP page, but it didn't help:
<%@ page language="java" buffer="500kb" autoFlush="false" %>
Any other suggestions? (Note that I don't have the option of breaking up the data into smaller pages.....)