This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting problem in downloading msword file using jsp
 
Similar Threads
problem in jsp code(validation of customer details)
file dialog does not close in IE 6
file download prob......defective open
Servlet.service() for servlet jsp threw exception java.lang.NullPointerException
blob.getBytes(1, (int) bl.length()); gives Nullpointer Exception