(转载)SSH报错3:"This absolute uri ... cannot be resolved..."
来源:互联网 发布:淘宝修改店铺名称 几次 编辑:程序博客网 时间:2024/05/02 23:21
SSH报错及解决:"This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application"
在JSP中This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved ……的解决方法
2009年02月18日 星期三 18:00关于JSP中org.apache.jasper.JasperException:
This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar files deployed with this application
照着《精通JSP--Web开发技术与典型应用》敲了一段JSTL的代码。没想到报错了。为这个问题搞了一下午,坐得屁股疼……
我的开发环境是Eclipse 3.2.0、Myeclipse 5.0、Tomcat 5.0.28(它用的是JRE1.4)和JDK1.5
从网上搜了一下,相同的说法是:一个就是JSTL的版本问题(1.0与1.1),是否不一致。还有就是检查虚拟目录下WEB-INF目录下的lib文件夹(如果同有lib文件夹,后动创建一个)中是否有jstl.jar和standard.jar两个jar包,如果没有则把它们复制到lib下面。
都试了,不过报错依旧……后来又找了一下加上自己的乱搞,按照上面的改过之后,大体有两种解决方法:
第一种就是在Eclipse的工程中导入JSTL1.1后,下载JSTL1.1 http://jakarta.apache.org/taglibs/index.html
然后解压,把*.jar和*.tld放到/WEB-INF/lib目录下。也就是将所有的jakarta-taglibs-standard-current.zip(JSTL的类库)中的.jar和.tlb放到WEB-INF目录下的lib文件夹中,JSP文件中导入<%@ taglib prefix="c" uri="/WEB-INF/lib/c.tld" %>,经试验是可以的。
第二种是修改web.xml,加上下面的语句:
<jsp-config>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/core</taglib-uri>
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/xml</taglib-uri>
<taglib-location>/WEB-INF/x.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/fmt</taglib-uri>
<taglib-location>/WEB-INF/fmt.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>http://java.sun.com/jsp/jstl/sql</taglib-uri>
<taglib-location>/WEB-INF/sql.tld</taglib-location>
</taglib>
</jsp-config>
JSP中导入<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>。应该就可以了……
推荐第二种^_^!
文章出自: http://hi.baidu.com/yych13/blog/item/be00ea0985f05ec93ac76376.html
- (转载)SSH报错3:"This absolute uri ... cannot be resolved..."
- Jsp 报错 错误 PWC6188: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either
- java tomcat 报错:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.
- JavaWeb 报错The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
- JAVAWeb报错:The absolute uri: [http://java.sun.com/jstl/core] cannot be resolved in eith
- 在JSP中This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved ……的解决方法
- This absolute uri http://java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the ...
- This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar
- This absolute uri http://Java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar
- This absolute uri http://Java.sun.com/jsp/jstl/core) cannot be resolved in either web.xml or the jar
- Maven项目启动报错:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml
- Tomcat启动项目,报错The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xm
- 项目报错:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this ap
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this ap
- 【已解决】This absolute uri http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or th
- The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved
- The absolute uri: http://java.sun.com/jstl/core cannot be resolved
- 配置Ant
- SQL数据查询——select
- SQL数据类型
- 吃"软饭"的一些不良思考习惯
- 在Linux系统中存储设备的两种表示方法
- (转载)SSH报错3:"This absolute uri ... cannot be resolved..."
- SQL中的视图,索引
- SSH错误4:LazyInitializationException异常延迟加载属性解决方案
- SQL笔记
- 快递节日工作压力大催生“愤怒的快递员”
- SSH报错5:java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
- 分析 Struts中的struts-config.xml解析过程
- hadoop命令备忘
- 数据查询举例