Q
quickcur
Quick Function Jul 13 2004, 4:18 pm show options
Newsgroups: comp.lang.java.programmer
From: (e-mail address removed) (Quick Function) - Find messages by this
author
Date: 13 Jul 2004 16:18:04 -0700
Local: Tues, Jul 13 2004 4:18 pm
Subject: jstl does not work with foreach
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse
I am testing jstl, here is my jsp:
<%@ page language="java" contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<table border=1>
<tr>
<th>Value</th>
<th>Square</th>
</tr>
<c:forEach var="x" begin="0" end="4" step="2">
<tr>
<td><c
ut value="${x}"/></td>
<td><c
ut value="${x * x}"/></td>
</tr>
</c:forEach>
</table>
</body>
</html>
But the output in web broswer is :
Value Square
${x} ${x * x}
${x} ${x * x}
${x} ${x * x}
Why?
Thanks,
qq
Newsgroups: comp.lang.java.programmer
From: (e-mail address removed) (Quick Function) - Find messages by this
author
Date: 13 Jul 2004 16:18:04 -0700
Local: Tues, Jul 13 2004 4:18 pm
Subject: jstl does not work with foreach
Reply | Reply to Author | Forward | Print | Individual Message | Show
original | Report Abuse
I am testing jstl, here is my jsp:
<%@ page language="java" contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<table border=1>
<tr>
<th>Value</th>
<th>Square</th>
</tr>
<c:forEach var="x" begin="0" end="4" step="2">
<tr>
<td><c
<td><c
</tr>
</c:forEach>
</table>
</body>
</html>
But the output in web broswer is :
Value Square
${x} ${x * x}
${x} ${x * x}
${x} ${x * x}
Why?
Thanks,