An application can distribute search results across several pages and provide cues that facilitate access to those pages. The following example uses search results properties together with the Compare servlet bean to set the range of items that appear on the first results page:

<dsp:droplet name="Compare">
  <dsp:param bean="MyAdvancedNavigationSearch.resultSetSize" name="obj1"/>
  <dsp:param bean="MyAdvancedNavigationSearch.maxResultsPerPage" name="obj2"/>
  <dsp:oparam name="greaterthan">
    Results
       <dsp:valueof bean="AdvancedNavigationSearch.startCount"/>
    &nbsp;-&nbsp;
       <dsp:valueof bean="AdvancedNavigationSearch.endCount"/>
    of
       <dsp:valueof bean="MyAdvancedNavigationSearch.resultSetSize"/>
  </dsp:oparam>
</dsp:droplet>

In this example, the Compare servlet bean compares the number of items returned from the search (resultSetSize) to the maximum number of items set to appear on a page (maxResultsPerPage). When the query returns more items than can be displayed on one page, the first results page displays the range of items with the properties startCount and endCount, and the total number of returned items with resultSetSize.

For example, given the following property settings:

resultSetSize=372
maxResultsPerPage=25
startCount=1
endCount=25

The previous code yields this display:

Results 1  25 of 372

 
loading table of contents...