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?
betty_123Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
thomas908Commented:
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.

0
 
thomas908Commented:
if u want control over the data then

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

is a good option.
0
 
betty_123Author Commented:
thanks. it works great.
contentType would be sufficient for me.
i don't need control over the data.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.