This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes exporting doc file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "exporting doc file" Watch "exporting doc file" New topic
Author

exporting doc file

suresh pulapally
Ranch Hand

Joined: Mar 15, 2005
Posts: 47
hi all,

iam trying to export .doc file,i have written following code,
response.setContentType("application/msword");
response.setHeader ("Content-Disposition", "attachment;filename=merlin.doc");

its asking me to open/save dialogue box,when i click on open button its opening in word document but its does't have any contents,wht could be the reason..

thanx
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Are you streaming a word file to the browser?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: exporting doc file
 
Similar Threads
how to generate MS-word document
cannot open office2007 documents from the java application
problem storing report genered from servlet
How 2 Convert .odt into .doc in java
File download and request Forward