Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create MSWORD doc and open the doc in jsp?

 
Yashnoo lyo
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone:
I want to open a word document in jsp. first , I want to read data from database to a word document in server and send bytestream to client,client's IE will open the word document if he has MS word installed. I find google but nothing. I had seen the jakart POI,but it don't support open MS word now. Anyone know how to do it?
Thks! :roll:
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13077
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You say you want to send the bytes of a Word document - however, JSP are designed to send characters, you should use a servlet to send binary data such as a .doc file.
If the intent is to combine database information with a Word document, your best bet is to use documents saved in the .rtf format rather than .doc
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic