码迷,mamicode.com
首页 > 移动开发 > 详细

maven使用jstl表达式和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解决

时间:2017-04-04 09:53:21      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:pen   ann   相关   mave   log   ati   解决   使用   jstl   

技术分享

 

 

maven 中使用jstl表达式中出现如上错误。原因:

1.由于在maven中的web项目没有自动依赖jstl的jar

未在pom文件中添加jstl相关的jar

 1       <!--jstl表达式-->
 2       <dependency>
 3           <groupId>jstl</groupId>
 4           <artifactId>jstl</artifactId>
 5           <version>1.2</version>
 6       </dependency>
 7       <dependency>
 8           <groupId>taglibs</groupId>
 9           <artifactId>standard</artifactId>
10           <version>1.2</version>
11       </dependency>

 

在这里添加上面两个jar的依赖就可以解决

maven使用jstl表达式和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解决

标签:pen   ann   相关   mave   log   ati   解决   使用   jstl   

原文地址:http://www.cnblogs.com/lonecloud/p/6664183.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!