还是JSTL问题
环境:tomcat5.08,jdk1.6
以下能正常显示:
<%@ page language= "java " contentType= "text/html; charset=ISO-8859-1 "%>
<%@ taglib uri= "http://java.sun.com/jstl/core " prefix= "c " %>
<html>
<head>
<title> Count to 10 Example (using JSTL) </title>
</head>
<body>
<c:forEach var= "i " begin= "1 " end= "10 " step= "1 ">
<c:out value= "${i} " />
<br />
</c:forEach>
</body>
</html>
但是,如果改成以下就不正常,显示出“${i}”
以下能正常显示:
<%@ page language= "java " contentType= "text/html; charset=ISO-8859-1 "%>
<%@ taglib uri= "http://java.sun.com/jstl/core " prefix= "c " %>
<html>
<head>
<title> Count to 10 Example (using JSTL) </title>
</head>
<body>
<c:forEach var= "i " begin= "1 " end= "10 " step= "1 ">
${i}
<br />
</c:forEach>
</body>
</html>
------解决方案--------------------当然不能啦。你是什么问题啊?
------解决方案--------------------tomcat版本问题,用5.5以上的