您的位置:首页 > 理论基础 > 计算机网络

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

2014-04-01 14:29 260 查看

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页面能正常执行了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐