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

Description

NOTE: JSP-TAG

Generate an iterator based on the val attribute supplied.

NOTE: The generated iterator will ALWAYS be pushed into the top of the stack, and poped at the end of the tag.

Parameters

Dynamic Attributes Allowed:

false
 

Name

Required

Default

Evaluated

Type

Description

converterfalsefalseorg.apache.struts2.util.IteratorGenerator.ConverterThe converter to convert the String entry parsed from val into an object
countfalsefalseIntegerThe max number entries to be in the iterator
idfalsefalseStringDeprecated. Use 'var' instead
separatortruefalseStringThe separator to be used in separating the val into entries of the iterator
valtruefalseStringThe source to be parsed into an iterator
varfalsefalseStringThe name to store the resultant iterator into page context, if such name is supplied

Examples