zoukankan      html  css  js  c++  java
  • The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar

    http://blog.csdn.net/lzz313/article/details/7554736

    -------------个人经历-------

    myeclipse 10.6 的jsp页面引用 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

    的程序

    在myeclipse 8.6中页面运行500错误

    找到Java EE 5 Libraries 的找到 jstl-1.2.jar 的物理路径,复制此jar到WebRoot/WEB-INF/lib下

    The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
    可能一:
    
    web项目出现如上问题,据查是版本问题:
    JSTL 1.0 的声明是:
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %>
    
    JSTL1.1 的声明是:
     <%@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>
    项目中,已经是 jstl 1.2 版本了,页面中也全部是用<%@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>这种方式。javaee5之后就只有 jstl.jar 这一个jar包了,没有standard.jar包,tld文件也打包到jar里面去了,啥在web.xml文件里配置jsp-config的解决方式也是浮云。
    
    可能二:
    
    最终查到问题是 jstl.jar 包在ide项目中有,但在tomcat发布的应用WEB-INF/lib下没有,这是工具发布项目的问题,复制一个jar包过去问题就解决了。
    
    >>jstl.jar没有
  • 相关阅读:
    poj 3666 Making the Grade
    poj 3186 Treats for the Cows (区间dp)
    hdu 1074 Doing Homework(状压)
    CodeForces 489C Given Length and Sum of Digits...
    CodeForces 163A Substring and Subsequence
    CodeForces 366C Dima and Salad
    CodeForces 180C Letter
    CodeForces
    hdu 2859 Phalanx
    socket接收大数据流
  • 原文地址:https://www.cnblogs.com/jcz1206/p/4344664.html
Copyright © 2011-2022 走看看