For an individual query, ATG Search typically returns results as an array of objects. Each object represents one item returned by the search.

The number of items returned may be large, so queries can include pageSize and pageNum request attributes that restrict the size of the returned array. For example, if pageSize=10 and pageNum=1, the array will contain ten objects, representing the eleventh through twentieth items in the search results. (Note that pageNum is zero-based, so page 1 is the second page.)

The following JSP fragment creates a text field for entering the value of the pageNum attribute, and a drop-down for selecting a value for the pageSize attribute:

Page:
<dspel:input type="text" id="pageNum" value="0"
  name="pageNum" bean="${formHandlerPath}.requestAttributes.pageNum"/>

Page Size
<dspel:select bean="${formHandlerPath}.requestAttributes.pageSize">
  <dspel:option value="1000000">one million</dspel:option>
  <c:forEach begin="5" end="35" step="5" var="pageSize">
    <dspel:option value="${pageSize}">
      <c:out value="${pageSize}"/>
    </dspel:option>
  </c:forEach>
</dspel:select>
 
loading table of contents...