Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

getting problem in downloading msword file using jsp

 
Nazeer Ahammad
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am using below mention code:






And i got problem for downloading msword file remaining file are downloading i got prob only at msword

Problem is :





Please any one solve my prob









 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You simply can NOT do this kind of thing from JSP, application files with very very specific binary formats can NOT be sent as JSP responses because JSP will always be trying to write HTML - the first part of the received file will be JUNK as far as Word or Paint or any other application is concerned.

Use a servlet to send application files.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic