File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Joined: Jan 07, 2007
Jul 20, 2012 09:58:40
A new window is opened but when i'm getting an error response like this:
Internet explorer cannot download somefile from localhost.
I'm setting the following headers in the HTTP response at the server side:
response.setContentType("text/plain"); response.setHeader("Content-disposition", "attachment;filename="+fileName); response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache");
My browser version is IE 8. This is working in latest version of chrome.
Please help in resolving the issue. Also, how to get Open/Save/Cancel dialog box when window.open is triggered and the response is obtained from the server?
I agree. Here's the link:
problem with download dialog box
IE Address Bar issue
File Download Issue in IE
Outputting to .txt
response.setHeader("Refresh", "10; URL=http:\\ www.javaranch.com");
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014