<!-- Collection of code snippets by Arne Vajhøj -->
<!-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page import="java.util.*" %>
<%
// just for test
List data = new ArrayList();
data.add("A");
data.add("BB");
data.add("CCC");
request.setAttribute("data", data);
%>
<c:forEach var="o" items="${data}">
${o}<br>
</c:forEach>
<hr>
<c:forEach var="i" begin="0" end="2">
${data[i]}<br>
</c:forEach>
