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

我的未来我决定 提交于 2019-12-07 17:25:21

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!