Solved

transfer output to excel

Posted on 2004-10-01
4
203 Views
Last Modified: 2010-04-01
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
Comment
Question by:betty_123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 8

Accepted Solution

by:
thomas908 earned 500 total points
ID: 12198723
0
 
LVL 8

Expert Comment

by:thomas908
ID: 12198731
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
 
LVL 8

Expert Comment

by:thomas908
ID: 12198734
if u want control over the data then

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

is a good option.
0
 

Author Comment

by:betty_123
ID: 12198752
thanks. it works great.
contentType would be sufficient for me.
i don't need control over the data.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java beans and EJBs 5 203
reflection example 3 130
constructor overloading 2 96
how to add new optional parameter to JSP 1 60
Not everyone has adapted to a rapid advancement in technology; there are people who are reluctant or afraid to delve into this brave new world of IT. If you have a friend or a family member who suffers from the so-called technophobia, here is how yo…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question