File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What should i use?

 
Em Aiy
Ranch Hand
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display lot of data from a table into a page made over struts technology.

- The displayed data will have 6-7 columns.
- All columns should be sortable.
- Easy to export to CSV file.

I am not sure if there is any api or some other thing that help me for all this instead of writing every thing from scratch.
 
Em Aiy
Ranch Hand
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any help .. ?
 
Steve McLeod
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a very good JSP taglib that does exactly what you describe. It works well with Struts.

Displaytag
http://displaytag.sourceforge.net/11/

It's free, open source, and has excellent documentation and examples. I've used it with success on several projects.
 
Dhinesh Rajendran
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI,
Absolutely display tag will help You as what steve mentioned..
We can modify the tag file too regarding our requirements ..
 
Em Aiy
Ranch Hand
Posts: 226
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
that's cool. Thanks

I hope this will solve my Export to CSV problem as well
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exporting to Excel shouldn't be too much of a problem.

Really, all you have to do is send a csv file to the client, but change the header from text/html to excel. Excel will automatically come up if it's installed on the client, and display the data in cell blocks according to the way it is partitioned by commas.

-Cameron McKenzie
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic