jstl-core

Tag forEach

Attributes 
NameRequiredTypeDescription
itemsfalsejakarta.el.ValueExpression
(must evaluate to java.lang.Object)
Collection of items to iterate over.
beginfalsejakarta.el.ValueExpression
(must evaluate to int)
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.
endfalsejakarta.el.ValueExpression
(must evaluate to int)
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.
stepfalsejakarta.el.ValueExpression
(must evaluate to int)
Iteration will only process every step items of the collection, starting with the first one.
varfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
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.
varStatusfalsejakarta.el.ValueExpression
(must evaluate to java.lang.String)
Name of the exported scoped variable for the status of the iteration. Object exported is of type jakarta.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested visibility.