In this example, the EL expression in the body of the tag represents a single value in a collection, and the goal is to have the tag generate one row for each element in the collection. It’s simple—the doTag() method simply does the work in a loop, invoking the body on each iteration of the loop.
The JSP tag invocation
The tag handler doTag() method