Link to home
Start Free TrialLog in
Avatar of betty_123
betty_123

asked on

transfer output to excel

I have a intranet based web application in JSP deployed on tomcat. i want that when the user clicks on a particular link the output of that jsp page should be displayed to the user in a excel file.
is it possible to do this?
ASKER CERTIFIED SOLUTION
Avatar of thomas908
thomas908

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thomas908
thomas908

Writing
<%@ page contentType="application/vnd.ms-excel" %>
on the top of ur JSP page transfers the whole output of the JSP page to an excel file.
On the downside it does not offer u any flexibility in manipulating the contents of the excel sheet.

if u want control over the data then

http://jakarta.apache.org/poi/

is a good option.
Avatar of betty_123

ASKER

thanks. it works great.
contentType would be sufficient for me.
i don't need control over the data.