Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Thanuja Vishwanath
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.
 
Tamas Ragoncsa
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic