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:
When I face C# and Java I choose Java.
Author and all-around good cowpoke
posted 13 years ago
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
a wee bit from the empire
the new thread boost feature brings a LOT of attention to your favorite threads