Mantis - Resin
Viewing Issue Advanced Details
886 major always 01-19-06 15:00 01-24-06 21:48
anonymous Linux  
ferg Suse  
normal 9.3 / 10.0  
closed 3.0.17  
Pro fixed  
none    
none 3.0.18  
0000886: JSTL forEach tag variable affects variables with the same name with a wider scope
At the end of the JSTL forEach loop the variable used is apparently unset at at the page level. The example detailed in the 'Additional Information' seeks to explain the effect.

The example executes successfully in Resin 3.0.14, but fails in Resin 3.0.17.

Reproduced on Suse 9.3/10.0 using JDK 1.5.0_6
// 'issues' collection and 'issue' object being set.

${issue.title} // Renders successfully

// iterating through issues collection
<c:forEach items="${issues}" var="issue">
${issue.property}
</c:forEach>

${issue.title} // Renders nothing.

Notes
(0000746)
anonymous   
01-19-06 15:03   
// 'issues' collection and 'issue' object being set.

${issue.title} // Renders successfully

// iterating through issues collection
<c:forEach items="${issues}" var="issue">
${issue.property}
</c:forEach>

${issue.title} // Renders nothing.