aspose file tools*
The moose likes JSP and the fly likes getting problem in downloading msword file using jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "getting problem in downloading msword file using jsp" Watch "getting problem in downloading msword file using jsp" New topic
Author

getting problem in downloading msword file using jsp

Nazeer Ahammad
Ranch Hand

Joined: Feb 26, 2012
Posts: 43
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

Joined: Mar 22, 2000
Posts: 12823
    
    5
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: getting problem in downloading msword file using jsp