在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>