在使用el表達式時爆出錯誤
java.lang.NumberFormatException:For input string :"id" 錯誤
首先在xml文件中設置maven
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<!-- JSTL -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
然後在使用el表達式的jsp頁面中加入
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>