zoukankan      html  css  js  c++  java
  • The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved

    偶在页面里引入了标签如下:   
      <%@   taglib   prefix="c"   uri="http://java.sun.com/jstl/core"   %>   
      出错提示:   
        
      org.apache.jasper.JasperException:   /index.jsp(0,0)   This   absolute   uri   (http://java.sun.com/jstl/core)   cannot   be   resolved   in   either   web.xml   or   the   jar   files   deployed   with   this   application   
      at   org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:94)   
      at   org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:428)   
      at   org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:126)   
      at   org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:307)   
      at   org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:340)   
      at   org.apache.jasper.compiler.Parser.parseDirective(Parser.java:378)   
      at   org.apache.jasper.compiler.Parser.parseElements(Parser.java:795)   
      at   org.apache.jasper.compiler.Parser.parse(Parser.java:122)   
      at   org.apache.jasper.compiler.ParserController.parse(ParserController.java:199)   
      at   org.apache.jasper.compiler.ParserController.parse(ParserController.java:153)   
      at   org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:227)   
      at   org.apache.jasper.compiler.Compiler.compile(Compiler.java:369)   
      at   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)   
      at   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)   
      at   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)   
      at   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)   
      at   javax.servlet.http.HttpServlet.service(HttpServlet.java:853)   

    对于JAVAEE5.0及以上版本,使用的是jstl1.2.jar的版本,很简单,只需要将jstl1.2.jar拷贝到Tomcat安装目录下的lib下即可。

    对于jstl1.1.jar的话,则需要在web.xml中增加taglib,引入对tld文件,还要加上standard.jar。

  • 相关阅读:
    SQLServerframework启动报异常:Module的类型初始值设定项引发异常
    在coding或者github建立个人站点域名绑定
    Github速度慢的解决方法
    jsoup爬取网站图片
    activeMQ类别和流程
    Session session = connection.createSession(paramA,paramB);参数解析
    Ehcache入门经典:第二篇ehcache.xml的参数
    Ehcache入门经典:第一篇
    处理高并发
    扩充次数和创建个数问题
  • 原文地址:https://www.cnblogs.com/fhtwins/p/4072699.html
Copyright © 2011-2022 走看看