报错:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
pageContext.setAttribute("path",request.getContextPath());
在pom.xml文件中添加jar包
<!--jstl表达式--> <dependency> <groupId>jstl</groupId> <artifactId>jstl</artifactId> <version>1.2</version> </dependency> <dependency> <groupId>taglibs</groupId> <artifactId>standard</artifactId> <version>1.1.2</version> </dependency> 这两个对应的是
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> <scope>provided</scope> </dependency>对应的是:
pageContext.setAttribute("path",request.getContextPath());
Maven!!!!!!!!!