Search in the Documentation:

Summary for a simple list

In the case of a simple list, here is the list.jsp view that will display the elements. The <template:module> will dispatch to the sub node for rendering.

<template:include view="hidden.header"/>
list.hidden.header.jsp
<template:include view="hidden.load"/>
list.hidden.load.jsp
<c:set target="${moduleMap}" property="currentList" value="${jcr:getChildrenOfType(currentNode, jcr:getConstraints(currentNode))}" />
<c:forEach items="${moduleMap.currentList}" var="subchild" begin="${moduleMap.begin}" end="${moduleMap.end}">
<template:module node=”${node}”/>
</c:forEach>