<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> JSTL: Miscellaneous -- Various Iterator Tests Example

Various tests for Iterator tags

Iteration with only end specified (no items): end="10"

(illegal) <%-- --%>

Iteration with only begin specified (no items): begin="10"

(illegal) <%-- ${i} • --%>

Iteration with only begin specified (with items): begin="2"

index: ${status.index} • count: ${status.count} • item: ${i}

Iteration with only end specified (with items): end="1"

index: ${status.index} • count: ${status.count} • item: ${i}>

Iteration with begin > end

index: ${status.index} • count: ${status.count} • item: ${i}
index: ${status.index} • count: ${status.count} • item: ${i}
Exception: ${ex}