Jsp exporting to word

Reply

Join Date: Mar 2008
Posts: 1
Reputation: b1naryMan is an unknown quantity at this point 
Solved Threads: 0
b1naryMan b1naryMan is offline Offline
Newbie Poster

Jsp exporting to word

 
0
  #1
Mar 30th, 2008
Hi,

I'm a newbie to this forum and I wanna ask a few questions

How can I export using jsp, data that are store in sql database to word or excel or even pdf? Is it possible to be done?

How can in jsp to provide into my webpage an editor toolbar like this I'm using now to post my thread ? Is it possible to be done or are already made and just import them?

Can anyone help me with this two questions, by reference or any book?

Thanks
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 317
Reputation: Thirusha is an unknown quantity at this point 
Solved Threads: 51
Thirusha's Avatar
Thirusha Thirusha is offline Offline
Posting Whiz

Re: Jsp exporting to word

 
0
  #2
Mar 31st, 2008
I can answer your first question, just insert this to the top of your jsp file which is going to dipslay your information
  1. <%response.setHeader("Content-Disposition","attachment;filename=fileName.xls"); %>

And when u go to that page a box will pop up asking u if u would like to save the file.

Regarding your second question, i m not sure, as i too am relatively new to java and jsp.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Jsp exporting to word

 
0
  #3
Mar 31st, 2008
not something you should use JSP for...
It's for outputting text data, not for anything else.

And your second question is all about html, javascript, and CSS. Best ask that in a web design forum.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC