foreach loop is not working on opened pop up

Posted by Rozer on Stack Overflow See other posts from Stack Overflow or by Rozer
Published on 2010-06-17T13:59:11Z Indexed on 2010/06/17 14:33 UTC
Read the original article Hit count: 170

Filed under:

For each loop is not working in opened popup while the same collection i can see when I write it on page

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>my cart</title>
</head>
<body>
<% ArrayList cart=(ArrayList)session.getAttribute("Cart"); 
out.println(cart);
//this line is working
%>
<table>
      <tr bgcolor="#EAEAFF">       
   <td><b>Product ID</b></td>   

  </tr>
  <c:forEach items="${cart}" var="current">
        <tr>
           <td><c:out value="${current}"/></td>            
        </tr>
      </c:forEach>      
      </table>
</body>
</html>

© Stack Overflow or respective owner

Related posts about jsp