I need to output an excel report from a database, is there any taglib that
can I use for that or an example of a servlet .
thanks
-
generate excel output from database ? (3 messages)
- Posted by: majid abdel
- Posted on: May 08 2002 14:54 EDT
Threaded Messages (3)
- generate excel output from database ? by joseph yi on May 09 2002 03:31 EDT
- generate excel output from database ? by majid abdel on May 09 2002 08:03 EDT
- generate excel output from database ? by Dmitry Namiot on May 17 2002 18:20 EDT
-
generate excel output from database ?[ Go to top ]
- Posted by: joseph yi
- Posted on: May 09 2002 03:31 EDT
- in response to majid abdel
set the content type of the response object to Excel's MIME type. i personally use
response.setContentType("application/x-msexcel");
but I've seen an another valid content type.
you can lazily output your data to an HTML table and let excel try to parse it. a better idea is to create a sample spreadsheet in Excel, export it to XML, and view the source to see how Excel handles functions and tabular data.
then you can generate the XML yourself and it will be ready to use by Excel! -
generate excel output from database ?[ Go to top ]
- Posted by: majid abdel
- Posted on: May 09 2002 08:03 EDT
- in response to joseph yi
could you please give me a small example ?
thanks -
generate excel output from database ?[ Go to top ]
- Posted by: Dmitry Namiot
- Posted on: May 17 2002 18:20 EDT
- in response to majid abdel
See Excel taglib in Coldtags suite:
www.servletsuite.com/jsp.htm