Meaningless Drivel is fun!
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What should i use?" Watch "What should i use?" New topic

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

Joined: May 26, 2008
Posts: 11
There is a very good JSP taglib that does exactly what you describe. It works well with Struts.


It's free, open source, and has excellent documentation and examples. I've used it with success on several projects.

<a href="" target="_blank" rel="nofollow"></a>
Dhinesh Rajendran

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

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
subject: What should i use?
It's not a secret anymore!