DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JSP (http://www.daniweb.com/forums/forum24.html)
-   -   Jsp exporting to word (http://www.daniweb.com/forums/thread116476.html)

b1naryMan Mar 30th, 2008 6:17 pm
Jsp exporting to word
 
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

Thirusha Mar 31st, 2008 4:22 am
Re: Jsp exporting to word
 
I can answer your first question, just insert this to the top of your jsp file which is going to dipslay your information
<%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.

jwenting Mar 31st, 2008 12:42 pm
Re: Jsp exporting to word
 
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.


All times are GMT -4. The time now is 11:21 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC