maven 中使用jstl表達式中出現如上錯誤。原因:
1.由於在maven中的web項目沒有自動依賴jstl的jar
未在pom文件中添加jstl相關的jar
1 <!--jstl表達式--> 2 <dependency> 3 <groupId>jstl</groupId> 4 <artifactId>jstl</artifactId> 5 <version>1.2</version> 6 </dependency> 7 <dependency> 8 <groupId>taglibs</groupId> 9 <artifactId>standard</artifactId> 10 <version>1.2</version> 11 </dependency>
在這里添加上面兩個jar的依賴就可以解決