wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
 
subject: exporting doc file