首先,我创建一个新的Web项目 Create project by MyEclipse
所以,我有jstl-1.2.jar,然后我编写了我的jsp页面 My project -
<%@ page language="java" pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<c:forEach begin="0" end="9">
Hello World!<br/>
</c:forEach>
</body>
</html>
但我也得到了一个例外
HTTP Status 500 - The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
有时它是
HTTP Status 500 - java.lang.ClassNotFoundException:org.apache.jsp.index_jsp
任何人都可以帮助我?我很困惑,谢谢!