• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generate dynamic word document from jsp

 
Irene Loos
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an open-source project called "POI" for a Java API for generating/reading all the major MS file formats.
http://sourceforge.net/projects/poi
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.
Bill
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
hth,
bear
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic