• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp page contents in the word document

 
deepthi soft
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

How to open the jsp page contents in a word document using java. In that JSP web page i have one graph and also some contents. I want to open all the contents of that graph.jsp into a word document on clicking the word icon.
How to do this. Anyone one have any ideas.
Thanks in advance.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing in the JSP API for generating Word documents (a proprietary Microsoft technology). You might want to look into some of the third party products out there such as POI.
 
deepthi soft
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Thanks for your reply,
I want to open the weppage contents in the ms word. I am able to open word document using runtime object . exec command. But I designed the webpage using html tags, javascript and jsp tags. In that page i have a graph. This page is open in the ms word.
If anybody have any ideas help me.
Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand what you're trying to do. Word is used for working with text documents like TXT, DOC, RTF etc., not with web pages. It may be possible to save a web page as HTML, and then import it into Word, though.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!