Saturday, December 02, 2006

JSTL <c:forEach> Tag

Used as a for loop in JSP to process elements of a collection.
: (Core)
Prefix: c
items | String = collection to operate on.
var| String = variable holding the current item in iteration.
varStatus| String = variable holding the LoopTagStatus object.
begin| String = first index, 0-based.
end| String = last index, 0-based.
step| String = increment value, numeric.
<c:forEach items="${headerValues}" var="h">
<c:out value="${h.key}" />

No comments: