aspose 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 Spring in Action this week in the Spring 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: 42280
    
  64
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: 61426
    
  67

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]
 
Consider Paul's rocket mass heater.
 
subject: file download servlet does not work on IE8