Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

word file not getting downloaded on Netscape6

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to download a word (.doc) file on server.I used the following two lines of code,
response.setHeader("Content-Disposition", "attachment; filename=\""+ filename + "\"");
This works fine in IE but for netscape6 I get the file type as .jsp instead of getting .doc, and when I choose to download the file form the existing location it shows some irrelevant data on browser itself.
Can Anyone help me to sort out the problem.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic