182
JSTL Core <c:forEach> Tag
The <c:for each > is an iteration tag used for repeating the nested body content for fixed number of times or over the collection.
These tag used as a good alternative for embedding a Java while, do-while, or for loop via a scriptlet. The < c:for each > tag is most commonly used tag because it iterates over a collection of object.
Let’s see the simple example of tag:
Output:
Next TopicJSTL Core <c:forTokens> Tag