try to make a file download action without opening the file. I try the showcase file download example. change contentType to application/x-download in struts.xml
<param name="contentType">application/x-download</param> with firefox it works fine. with IE, it still open the gif in browser. anyone could help? the stream result type is handy. don't think i should re invent the wheel. btw just for curious I try to stream the file by jsp. I do something like this in jsp: stream=response.getOutputStream(); response.setContentType("application/x-download"); response.addHeader("Content-Disposition","attachment; filename="+filename); response.setContentLength( (int) f.length()); blah blah blah to write data to stream both IE and firefox are able to get the download dialog box but there is exception in log file ERROR [lina.core.StandardWrapperValve: 250] Servlet.service() for servlet default threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response I think stream result type should be the best solution. but I cant make IE to download the file. Any help? Thank you very much Joe -- View this message in context: http://www.nabble.com/-S2--File-Download-Example-in-showcase-doesn%27t-work-with-contentType-application-x-download-using-IE-tf4353956.html#a12406179 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]