I am display some report in jsp pagenow . I want to dispaly this report via Excel format.
can any body give any idea?
-
How to convert jsp page to Excel format (4 messages)
- Posted by: Mreddy B
- Posted on: April 19 2005 11:46 EDT
Threaded Messages (4)
- Apache POI by Stephane Vaucher on April 19 2005 12:06 EDT
- How to convert jsp page to Excel format by Rob DeMilio on April 19 2005 16:51 EDT
- Doesn't work on https by Anat Bar Geva on May 31 2011 05:48 EDT
- How to convert jsp page to Excel format by Vineet Rao on September 13 2012 14:34 EDT
-
Apache POI[ Go to top ]
- Posted by: Stephane Vaucher
- Posted on: April 19 2005 12:06 EDT
- in response to Mreddy B
http://jakarta.apache.org/poi/hssf/index.html
Have an alternate view that builds an excel doc and return it in binary format (with appropriate mimetype).
A cheaper solution:
Use a csv format that can be imported directly into excel.
HTH,
sv -
How to convert jsp page to Excel format[ Go to top ]
- Posted by: Rob DeMilio
- Posted on: April 19 2005 16:51 EDT
- in response to Mreddy B
Just try to set the content type like this at the top of your page.
<%@ page contentType="application/vnd.ms-excel" %>
Newer Excel versions have the ability to understand HTML tables. -
Doesn't work on https[ Go to top ]
- Posted by: Anat Bar Geva
- Posted on: May 31 2011 05:48 EDT
- in response to Rob DeMilio
Do you know how to make it work on https too?
-
How to convert jsp page to Excel format[ Go to top ]
- Posted by: Vineet Rao
- Posted on: September 13 2012 14:34 EDT
- in response to Mreddy B
Its fairly simple and can be done with minimum changes to your existing JSP. Take a look at this example on quicklyjava.com: