wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 41144
    
  45
It's a client setting - there's nothing the web app can do about it.


Ping & DNS - my free Android networking tools app
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: 60800
    
  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]
 
wood burning stoves
 
subject: file download servlet does not work on IE8
 
Similar Threads
bytearray image decoding
problem with utf-8 encoding
Video Player
A problem with servlet file transfer
Opening a PDF