logic
Tag iterate


Repeat the nested body content of this tag over a specified collection.

Repeats the nested body content of this tag once for every element of the specified collection, which must be a Collection. The collection to be iterated over must be specified in one of the following ways:

If the collection you are iterating over can contain null values, the loop will still be performed but no page scope attribute (named by the id attribute) will be created for that loop iteration. You can use the <logic:present> and <logic:notPresent> tags to test for this case.



Tag Information
Tag Classit.eng.spago.taglib.logic.IterateTag
TagExtraInfo Classit.eng.spago.taglib.logic.IterateTei
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
collectionfalsetruejava.lang.Object

A runtime expression that evaluates to a collection (conforming to the requirements listed above) to be iterated over.

idtruefalsejava.lang.String

The name of a page scope JSP bean that will contain the current element of the collection on each iteration, if it is not null.

indexIdfalsefalsejava.lang.String

The name of a page scope JSP bean that will contain the current index of the collection on each iteration.

lengthfalsetruejava.lang.String

The maximum number of entries (from the underlying collection) to be iterated through on this page. This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type java.lang.Integer that defines the desired value. If not present, there will be no limit on the number of iterations performed.

listAttributefalsetruejava.lang.StringSee paramName
namefalsetruejava.lang.String

The name of the service context collection to be iterated.

offsetfalsetruejava.lang.String

The zero-relative index of the starting point at which entries from the underlying collection will be iterated through. This can be either an integer that directly expresses the desired value, or the name of a JSP bean (in any scope) of type java.lang.Integer that defines the desired value. If not present, zero is assumed (meaning that the collection will be iterated from the beginning.

paramNamefalsetruejava.lang.StringThe attribute paramName is used in conjunction with the attribute paramValue and the attribute listAttribute to filter a SourceBeanAttribute. In this way is possible to navigate a SourceBean to a path that indicate a list of SourceBeanAttribute to filter; the filter is rappresented with the pair (paramName, paramValue). If the obtained attribute contain a list identified by listAttribute, this list is returned.
paramValuefalsetruejava.lang.StringSee paramName
scopefalsetruejava.lang.String

The bean scope within which to search for the bean named by the name property, or "any scope" if not specified.


Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.