This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Downloading a file from servlet

 
sneh rai
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have written a servlet to download a file(a text file) to the user's m/c. It works just fine on IE 5.0 and any version of Netscape. But when I try it on IE 5.5, the text file is opened in the browser and when I further try to save it, it tries to save the servlet instead of the file. Please advise.
Thanks in advance,
Sneh.
 
Cameron Park
Ranch Hand
Posts: 371
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Someone already asked this question recently. You can change the extension of the text file to say. ".dat". And because it is not one of the MIME types, the browser will probably not open it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic