Meaningless Drivel is fun!*
The moose likes JSP and the fly likes Generate dynamic word document from jsp 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 "Generate dynamic word document from jsp" Watch "Generate dynamic word document from jsp" New topic

Generate dynamic word document from jsp

Irene Loos
Ranch Hand

Joined: Apr 15, 2002
Posts: 78
I need to generate word document which will contain some dynamic information (address, name, etc). Ideally my jsp page will have link or button. When users will click on this link it will generate word document. Anybody done this before?

Irene Loos
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
There is an open-source project called "POI" for a Java API for generating/reading all the major MS file formats.
I don't think it can do everything that can appear in a Word document, but it may be able to do a simple one.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60789

Irene, do a search through the forums and I believe you will find a number of other threads that have discussed this very topic.
One of the issues discussed was that it might be easier to generate RTF (Rich Text Format; a text-based markup format which Word understands) rather than an actual proprietary-format Word document.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Consider Paul's rocket mass heater.
subject: Generate dynamic word document from jsp
Similar Threads
how to generate MS-word document
Generating a word document
open a word document using JSP
Download to word and making word non-editable
Generate Microsoft Word Document using JSP