Jsp 報錯 錯誤 PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either

1:

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

問題:編譯錯誤
原因:缺少jstl.jar 和standard.jar
解決方案:在webroot/web-inf/lib(沒有則自己創建)下添加(拷貝進)兩個包

2:This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application

錯誤可能性原因1:jstl.jar 版本問題

錯誤可能性原因2:路徑書寫不對

解決方案:

修改爲

<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>

3:PWC6188: 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

解決方案:
異常的原因是不能識別“${XXX}”,解決辦法有兩種:
一、在page指令裏,加入isELIgnored="true"屬性,即
<%@ page language="java" contentType="text/html;charset=gbk"  isELIgnored="true" %>
二、把
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
變爲:
<%@ taglib prefix="c" uri=http://java.sun.com/jstl/core_rt  %>
經過改動之後,jsp頁面能正常執行了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章