Q
Quick Function
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><cut value="${x}"/></td>
<td><cut 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
<%@ 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><cut value="${x}"/></td>
<td><cut 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,