• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

response.setHeader("Content-Disposition") not working in IE alone

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Iam creating a PDF and open that in browser using servlet. When user save that PDF, then the file name will be saved as its project name which is passed.

Iam setting the file name like this



When i save the PDF in chrome and firefox it is saved with the project name. Whereas if i save the PDF in IE then the file name is saved as the Servlet name and not the name mentioned in the content disposition.

Please advise.
 
Greenhorn
Posts: 6
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Thanuja,

my experience is the same IE's behavior is strange with file downloads.
However there are some best practices.
http://onjava.com/pub/a/onjava/excerpt/jebp_3/index3.html

I hope this helps.

Tamas
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic