This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes How to export selected rows of displaytag to a file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to export selected rows of displaytag to a file?" Watch "How to export selected rows of displaytag to a file?" New topic
Author

How to export selected rows of displaytag to a file?

Vighnesh Mu
Greenhorn

Joined: Jan 06, 2011
Posts: 29

Hi,

I am using displaytag with struts2 for displaying data fetched from database in a jsp, along with pagination and export option. According to my requirement I have to give an option to export only selected rows(used check box to select particular rows to be exported) in the displaytag result table. By using default export option of displaytag I can only export all the rows in displaytag result table. Since I am using pagination also I need to maintain the rows checked in each page to export. Can anybody tell me is it possible to implement my requirement using displaytag and if possible how can I accomplish it?
Is it possible to put headers & footers for the exported page in displytag?

Thanks.
Vighnesh Mu
Greenhorn

Joined: Jan 06, 2011
Posts: 29

Does anybody know how to resolve this?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to export selected rows of displaytag to a file?