Home » JSTL Core c:forEach Tag

JSTL Core c:forEach Tag

by Online Tutorials Library

JSTL Core <c:forEach> Tag

The &ltc: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:

JSTL Core Tags7

You may also like