Maven WebApp 报错: Can not find the tag library descriptor
在Eclipse内创建maven项目时,项目中的jsp文件可能会有如下错误
这种情况是由于没有加入jstl和taglib的dependency,只要在pom文件中加入响应的依赖就可以了
如下
<dependency> <groupId>javax.servlet.jsp.jstl</groupId> <artifactId>javax.servlet.jsp.jstl-api</artifactId> <version>1.2.1</version> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> </dependency>
有时也可能是缺少相应的jar包,如
报了Can not find the tag library descriptor for "/struts-tags"的错误,找了一下原因发现时缺少struts2-core-2.3.24.jar这个包