idea使用jstl 提示http://java.sun.com/jsp/jstl/core cannot be resolved
唉,不知道是我的idea問題jstl標(biāo)簽一直不能用一直報錯 ?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········
2017-04-07
lz你用的web.xml是什么版本的?如果是2.4以上的標(biāo)簽庫應(yīng)該是(有個_rt后綴)
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
2017-03-19
你在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">