File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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: 13037
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: 63873

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] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Generate dynamic word document from jsp
It's not a secret anymore!