File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes What should i use? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What should i use?" Watch "What should i use?" New topic
Author

What should i use?

Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
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.


The difference between <b>failure</b> and <b>success</b> is often being <b>right</b> and being <b>exactly right</b>.
Em Aiy
Ranch Hand

Joined: May 11, 2006
Posts: 226
any help .. ?
Steve McLeod
Greenhorn

Joined: May 26, 2008
Posts: 11
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.


<a href="http://www.solidsimplesafe.com/" target="_blank" rel="nofollow">http://www.solidsimplesafe.com/</a>
Dhinesh Rajendran
Greenhorn

Joined: May 27, 2008
Posts: 5
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

Joined: May 11, 2006
Posts: 226
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

Joined: Aug 26, 2006
Posts: 4968
    
    1

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
 
subject: What should i use?
 
Similar Threads
Wanted: conceptual tutorial on JTable
URLyBird - Extending the DB Interface's Functionality
Lates Timestamp record from 3 tables.
JDBC connection with JTable
Moving columns between tables