1 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 2 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 3 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
如果在eclipse报出以上内容找不到,则因为没有添加 standard.jar 和jstl.jar的缘故。需要引入这两个jar。尽管在jstl-1.2.jar中可以看到function但还是需要standard.jar
gradle:
compile group: 'javax.servlet', name: 'jstl', version:'1.2'
compile('taglibs:standard:1.1.2')
mvn:
<dependency> <groupId>javax.servlet</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> </dependency>