Home > Guides > Tag Developers Guide > Struts Tags > Tag Reference > Generic Tag Reference > subset

Description

NOTE: JSP-TAG

A tag that takes an iterator and outputs a subset of it. It delegates to org.apache.struts2.util.SubsetIteratorFilter internally to perform the subset functionality.

Parameters

Dynamic Attributes Allowed:

false
 

Name

Required

Default

Evaluated

Type

Description

countfalsefalseIntegerIndicate the number of entries to be in the resulting subset iterator
deciderfalsefalseorg.apache.struts2.util.SubsetIteratorFilter.DeciderExtension to plug-in a decider to determine if that particular entry is to be included in the resulting subset iterator
sourcefalsefalseStringIndicate the source of which the resulting subset iterator is to be derived base on
startfalsefalseIntegerIndicate the starting index (eg. first entry is 0) of entries in the source to be available as the first entry in the resulting subset iterator
varfalsefalseStringThe name to store the resultant iterator into page context, if such name is supplied

Examples