J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
来源:互联网 发布:python statement 编辑:程序博客网 时间:2024/06/11 10:01
http://blog.csdn.net/woshixuye/article/details/8672884
一、发现问题
运行引用了jstl的jsp页面
报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
二、原因分析
可能一:版本问题
JSTL1.0 的声明是:<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %>JSTL1.1 的声明是:<%@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>
可能二:没有standard.jar
javaee5自带的已经是jstl1.2版本了,页面中也全部是用<%@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>这种方式。
但javaee5之后就自带只有jstl.jar这一个,没有standard.jar,tld文件也打包到jar里去了,不存在web.xml文件里配置jsp-config的办法。
试着添加standard.jar试试。
可能三:tomcat发布的应用WEB-INF/lib下没有jstl.jar
jstl.jar包在ide项目中有,但在tomcat发布的应用WEB-INF/lib下没有,这是工具发布项目的问题,复制一个jar包过去问题就解决了。
原帖地址:http://blog.csdn.net/lzz313/article/details/7554736
0 0
- J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
- J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
- J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jarfiles错
- Jsp http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- 加锁实例
- PAT解题1012
- Git branch lost
- ZOJ-3931-Exact Compression【dp】【bitset】【好题】
- Android WebView缓存机制详解
- J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
- SlideMenuDemo
- 为什么要加上拉电阻和下拉电阻
- label中的文字类似跑马灯的效果
- 基于状态机的调度机制需要包含的四个要素
- Redis 字符串处理命令
- Skyline创建三维管线两种方式(C#)
- boost::scoped_ptr用法
- android 5.0预制APK