Solved

transfer output to excel

Posted on 2004-10-01
4
199 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

We need a new way to communicate time sensitive or critical info.   The best part of my role at xMatters is visiting our clients all over the world to learn about how they operate their businesses, share insights that xMatters has gleaned across…
In 2017, ransomware will become so virulent and widespread that if you aren’t a victim yourself, you will know someone who is.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

912 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now