现在的位置: 首页 > 综合 > 正文

Jsp 报错 错误 PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either

2018年04月30日 ⁄ 综合 ⁄ 共 777字 ⁄ 字号 评论关闭

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页面能正常执行了。

抱歉!评论已关闭.