Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
It's exactly the same and completely different as this tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!