File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes file download servlet does not work on IE8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "file download servlet does not work on IE8" Watch "file download servlet does not work on IE8" New topic
Author

file download servlet does not work on IE8

Karol Wojcik
Greenhorn

Joined: Apr 19, 2012
Posts: 17

Hi all,
I've created a servlet which allows user to download a generated file (only two types of files: xml and xls). Servlet works perfectly on FF, Chrome, and Opera, but on IE8, when client calls window.open, a new window appears and diaspaears in a moment, just flush. I've done some research and find out that this is a common problem and can be solved by one of the following versions of doGet method. But none of those works with xml and xls files. I'm out of any ideas.
Here are methods found during research, all of them works on commonly used browsers but not on IE8
Do You have any idea?





Karol Wojcik
Greenhorn

Joined: Apr 19, 2012
Posts: 17

Problem solved. It was not a matter of java code, but IE8 safety settings.
"Automatic prompting for file downloads" should be turned on.
chetan kapoor
Greenhorn

Joined: Oct 16, 2013
Posts: 2
Did you got any code solution for this
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39544
    
  27
It's a client setting - there's nothing the web app can do about it.


Ping & DNS - updated with new look and Ping home screen widget
chetan kapoor
Greenhorn

Joined: Oct 16, 2013
Posts: 2
I need to download mostly pdf files client settings is not an option for me.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60048
    
  65

chetan kapoor wrote:client settings is not an option for me.

Then you are out of luck. You cannot override the settings from code.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: file download servlet does not work on IE8
 
Similar Threads
problem with utf-8 encoding
Opening a PDF
A problem with servlet file transfer
bytearray image decoding
Video Player