[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

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?
0
betty_123
Asked:
betty_123
  • 3
1 Solution
 
thomas908Commented:
0
 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now