Mantis - Resin
Viewing Issue Advanced Details
465 minor always 11-25-05 00:00 11-30-05 10:21
anonymous  
ferg  
normal  
closed 3.0.15  
3.0.15 fixed  
none    
none 3.0.16  
0000465: c:forEach works incorrectly unless <jsp/> is present
RSN-514
This seems to be similar to RSN-492. The following JSP code:

  <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" [^] %>
  <%
  java.util.List list = new java.util.ArrayList();
  list.add("a");
  list.add("b");
  list.add("c");
  pageContext.setAttribute("list", list);
  %>

  <c:forEach items="${list}" var="element">
    <c:out value="${element}"/>

  </c:forEach>

Erroneously produces:

  ${list}

Unless the <jsp/> directive is included in web.xml:

  <web-app>
    <jsp/>
  </web-app>

In which case it produces:

  a
  b
  c
Windows XP, Sun Java 1.5.0_02-b09

Notes
(0000487)
ferg   
11-25-05 00:00   
Yes, it's the same issue.

jsp/1cm7