According to TLD or attribute directive in tag file, attribute items does not accept any expressions
可能是因为使用了JSP2.0版本, 同时又没有使用JSTL core库的备用版本(RT库),在jsp2.0不支持jstl core库,需要使用rt库。
解决方式:
将<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
改为:
<%@ taglib uri=“http://java.sun.com/jstl/core_rt ”prefix="c"%>
就可以解决。