[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Writing struts jsp output to csv/xls

Posted on 2010-11-19
3
Medium Priority
?
684 Views
Last Modified: 2013-11-24
I have a struts jsp page which shows up a table with some data. I would like to have a button like 'Write CSV' or 'Write excel' in the same page, to write the table content as csv/xls file in the client machine. Please help me with the idea and write logic(without javascript).
Thanks,
Ganesh.
0
Comment
Question by:ganeshaneesh
[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
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
sam2912 earned 1000 total points
ID: 34180026
This type of operation cannot be done using JavaScript. It has to be done on the server-side, and the output file downloaded to client.
0
 

Author Comment

by:ganeshaneesh
ID: 34180040
I understand, but I expect sample code.
-Aneesh.
0
 
LVL 14

Assisted Solution

by:sam2912
sam2912 earned 1000 total points
ID: 34180305
There are many libraries available which read/write CSV files. You can try these:
http://opencsv.sourceforge.net
http://sourceforge.net/projects/javacsv
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

656 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