• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

file download servlet does not work on IE8

 
Greenhorn
Posts: 19
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?





 
Charles Latka
Greenhorn
Posts: 19
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem solved. It was not a matter of java code, but IE8 safety settings.
"Automatic prompting for file downloads" should be turned on.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you got any code solution for this
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a client setting - there's nothing the web app can do about it.
 
chetan kapoor
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to download mostly pdf files client settings is not an option for me.
 
Marshal
Posts: 67344
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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


Then you are out of luck. You cannot override the settings from code.
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!