JSP CUSTOM TAG LIBRARIES


page tag
Example

Provides pagination control over the results of a db, ftsearch, or view tag. The body is evaluated once and is expected to contain a header followed by a viewloop tag (when in the context of a view) or docloop tag (in all contexts). Navigating from page to page is done using the pagefirst, pagelast, pagenext, pageprev, and pagebar tags.

Contexts

Valid in:


Creates for:
Syntax
Attributes

The following attributes are optional:

direction


evaluateonnorows
id
max
name
rows
start
viewasdocuments
See the Common Domino JSP tag attributes section for definitions of debug, onfailure, and time.

Interface

You can use the following interface to determine the current state of a JSP page:

public interface PageInfo {

   // Get the current page being processed.

   public abstract int getPage();

   // Returns the total number of pages for this collection

   // (not expensive)

   public abstract int getPageCount();

   // Returns TRUE if the current page is the first page

   public abstract boolean isFirstPage();

   // Returns TRUE if the current page is the last page

   public abstract boolean isLastPage();

   // Returns TRUE if the current page is the only page

   public abstract boolean isOnlyPage();

   // Returns TRUE if the current page is blank

   // (isFirstPage() should be TRUE)

   public abstract boolean isEmptyPage();


Example
See Also