> Problem:
> Return an Excel spreadsheet from a server to a user's web browser, IE. I do
> not want to allow the spreadsheet opening in the browser window, rather I
> want to force the user to have to download the file to their local disk. The
> environment is a Lan with trusting relationships between all parties.
The easiest way I've found is like this:
ServletOutputStream out = res.getOutputStream();
ZIPOutputStream zout = new ZIPOutputStream(out);
Then just send the ZIP file, and the user gets forced into the download.
Michael Akerman
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html