zoukankan      html  css  js  c++  java
  • exception 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

     

    1.情景展示

      eclipse,运行web项目时,报错信息如下:

      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

      但是,你将项目导入到myeclipse时,项目可以正常运行,却不会报错,怎么回事? 

    2.原因分析

      这主要是因为,在myeclipse中,J2EEjar包中包含:standard.jar和jstl.jar这两个jar包。

      而在eclipse中,则不会自动引入这两个jar包(缺少这两个jar包),所以在发布到tomcat上时,会报上述错误。

    3.解决方案

      方式一:将这两个jar包拷贝到项目的lib目录下; 

      并且要构建到项目当中。

      如果没有自动添加到项目中,则需要你手动Add to Build Path。

      这种方式的优势在于:方便项目移植。

      方式二:将这两个jar包拷贝到tomcat的lib目录下; 

      这样,只要使用tomcat发布项目,就可以保证发布的项目不会缺失这两个jar包。

    写在最后

      哪位大佬如若发现文章存在纰漏之处或需要补充更多内容,欢迎留言!!!

     相关推荐:

  • 相关阅读:
    GridView 内部添加控件
    TreeList获取选中内容
    TreeList简介
    TreeList
    DEV—【GridControl 按钮列无法触发点击事件解决方案】
    dev 多行文本 MemoEdit
    DevExpress控件使用小结
    DEV常用设置
    DEV常用设置
    documentManager1注意事项
  • 原文地址:https://www.cnblogs.com/Marydon20170307/p/10948287.html
Copyright © 2011-2022 走看看