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
一、在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 %>