I have a jsp file with the following
<c:forEach var="node" items="${tree.children}">
<c:set var="currentNode" value="${node}" scope="request"/>
<c:out value="${currentNode.displayName}" />
<jsp:include page="currentNode.jsp"/>
<br/>
</c:forEach>
with currentNode.jsp containing, at the moment, only
X<c:out value="${currentNode.displayName}" />Y
The variable currentNode
should be available in the included jsp file. For example, see this question.
But even this simple example is not working. I am getting the following output
Node 1 XY
Node 2 XY
Node 3 XY
Where I was expecting
Node 1 XNode 1Y
Node 2 XNode 1Y
Node 3 XNode 1Y
What am I missing to make this work?