日期:2014-05-20  浏览次数:20685 次

jstl问题
org.apache.jasper.JasperException:   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

出现这个错误,哪位能讲明白点

我的代码:
<%@   page   contentType= "text/html;charset=gb2312 "   %>
<%@   taglib   prefix= "c "   uri= "http://java.sun.com/jsp/jstl/core   "   %>
<html>
<head>
  <title> using   tags   to   output   integers </title>
</head>
<body>
<c:foreach   var= "i "   begin= "1 "   end= "10 "   step= "2 ">
<c:out   value= "${i} "   /> <br>
</c:foreach>
</body>
</html>

------解决方案--------------------
在你的WEB.xml或JAR包里没有找到配置:http://java.sun.com/jsp/jstl/core

你没有加入jstl的JAR包
加入JSTL的包就可解决问题
------解决方案--------------------
在你的WEB.xml或JAR包里没有找到配置:http://java.sun.com/jsp/jstl/core
你没有加入jstl的JAR包
加入JSTL的包就可解决问题

还有可能是系统不认java.sun.com/jsp/jstl/core这个,我以前出现过
改成 <%@ taglib prefix= "c " uri= "http://java.sun.com/jstl/core "%>