The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar

情况描述:

在myeclipse下导入一个使用JSTL标签的web项目

启动后报错

The absoluteuri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml orthe jar files deployed with this application

 

检查java buildpath libraries,已经有jstl-1.2.jar包

 

解决方案:

将jstl-1.2.jar复制到WEB-INF/lib下,这样即便删除java buildpath libraries中的jstl-1.2.jar包也没有问题,感觉好奇怪

原因可能是:

Note how the URI makes no reference to the actual jar file or theMETA-INF directory, but the URL is matched to the tag file within thejar because the container (Apache Tomcat in my setup) automaticallysearches through any of the jars in the WEB-INF\lib directory.

请注意,URI并没有引用实际的jar文件或META-INF目录,但该URL与jar中的标记文件相匹配,因为容器(Apache Tomcat)会自动在WEB-INF \ lib目录搜索jar文件

 

以后有时间试一下maven项目中使用jstl标签的情况,留个坑在这

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值