Downloading a large file using Struts2
Posted on 2008-10-10
I'm trying to download data from an Oracle 10g DB using struts2. I create a temp file from the db and download the temp file.
As the temp file is being created on the server, after a few minutes the browser goes blank (closing the connection, I presume). So when the server tries to pass back the created temp file to the browser, it throws a
java.net.SocketException: Broken pipe
exception. I use iBatis, Oracle 10g and JBoss.
How can I prevent the browser from going blank, when the file is still being created on the server.