Programming Thoughts
J2EE - Pagination
Editing Example

Displaying search results in pages

The previous set of articles described a Template class, list cache, that aids pagination of search results, ending with a working example. This article describes a working example of design changes described in, Editing. It's also the example of Post/Redirect/Get

Live example

A demonstration application can be accessed here. The start page looks like the following.

Figure 1: Starting page

Download

Source code of a demonstration application can be downloaded here as a zip file. It requires the following.

  • JDK 8 or better
  • Maven 3
  • Jakarta EE server, such as Tomcat 9

It compiles into a WAR file and is run from the /example3 URL page. The start page looks like the following.

The application demonstrates finding, navigating and editing a simple, in-memory table of countries using list cache for pagination.