JSTL core
Tag forEach


The basic iteration tag, accepting many different collection types and supporting subsetting and other functionality


Tag Information
Tag Classorg.apache.taglibs.standard.tag.rt.core.ForEachTag
TagExtraInfo Classorg.apache.taglibs.standard.tei.ForEachTEI
Body ContentJSP
Display NameNone

Attributes
items
Collection of items to iterate over.
 
Required: false
Request-time: true
Type: java.lang.Object
begin
If items specified: Iteration begins at the item located at the specified index. First item of the collection has index 0. If items not specified: Iteration begins with index set at the value specified.
 
Required: false
Request-time: true
Type: int
end
If items specified: Iteration ends at the item located at the specified index (inclusive). If items not specified: Iteration ends when index reaches the value specified.
 
Required: false
Request-time: true
Type: int
step
Iteration will only process every step items of the collection, starting with the first one.
 
Required: false
Request-time: true
Type: int
var
Name of the exported scoped variable for the current item of the iteration. This scoped variable has nested visibility. Its type depends on the object of the underlying collection.
 
Required: false
Request-time: false
Type: java.lang.String
varStatus
Name of the exported scoped variable for the status of the iteration. Object exported is of type javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested visibility.
 
Required: false
Request-time: false
Type: java.lang.String

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.