Home

This Chapter
-Chapter 18: Paging and Sorting
-Working with Large/Very Large Sets of Data
-Introduction to the Display Tag Library
-Working with Large Collections of Data
-Working with Very Large Collections of Data
-Summary

Table of Contents
-Introduction
-Chapter 1: Model 2 and Struts
-Chapter 2: Input Validation with Action Forms
-Chapter 3: The HTML Tag Library
-Chapter 4: Input Validation and Data Conversion
-Chapter 5: The Validator Plugin
-Chapter 6: The Expression Language
-Chapter 7: JSTL
-Chapter 8: The Bean Tag Library
-Chapter 9: The Logic Tag Library
-Chapter 10: Struts-EL, Nested, selectLabel
-Chapter 11: Message Handling and Internationalization
-Chapter 12: The Tiles Framework
-Chapter 13: Securing Struts Applications
-Chapter 14: The Config Object
-Chapter 15: The Persistence Layer
-Chapter 16: Object Caching
-Chapter 17: File Upload and File Download
-Chapter 18: Paging and Sorting
-Chapter 19: Preventing Double Submits
-Chapter 20: Early HttpSession Invalidation
-Chapter 21: Decorating Request Objects
-Chapter 22: How Struts Works

Previous
Next

 

Chapter 18

Paging and Sorting

Paging or pagination is a technique to split large result sets into more viewable Web pages. For example, if a business method returns a collection of 300 transfer objects, it is more sensible to display 10 or 20 results each time because the user screen space is limited and because sending all the results requires the transfer of a larger chunk of data. To view the other objects, the user can click on the Next link. Also, for easier user access, you can provide page numbers in each page so that the user can navigate to any page he/she desires. This chapter discusses various solutions to displaying large amount of data. For more effective discussions, we group the problems into two categories: working with large collections of data and working with very large collections of data. This chapter also introduces the Display Tag Library, a highly popular open source library that contains tags for displaying table data. Among others, the Display Tag Library’s tags support paging and sorting.

Previous
Next