唉,不知道是我的idea问题jstl标签一直不能用一直报错 org.apache.jasper.JasperException: /WEB-INF/jsp/list.jsp (line: 9, column: 0) 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·······包也是正确添加了的,害我到隔壁去看了freemark········
lz你用的web.xml是什么版本的?如果是2.4以上的标签库应该是(有个_rt后缀)
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
你在web.xml头部替换成
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">