J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
来源:互联网 发布:java 静态泛型变量 编辑:程序博客网 时间:2024/06/01 22:56
一、发现问题
JSTL1.1 的声明是:<%@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>
运行引用了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
- 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
- linux socket connect超时设置
- Selenium_官方文档:Selenium RC 安装步骤
- android开发怎样测验onSaveInstanceState方法
- .NET十年(下)
- 练习 for freediameter
- J2EE中使用jstl报http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar错
- 初始化列表
- sudo及其配置文件sudoers
- 绘制直线、矩形、曲线和多边形
- 获取系统中所有应用的方法
- delphi for MQ 【终极教程一】 认识如何控制MQ
- FLEX日期格式化处理和字符串转换
- fl2440 移植u-boot-2010.09全纪录1---------准备移植
- IOS 推送 + java 服务端