错误:

org.apache.jasper.JasperException: /success.jsp(23,9) According to TLD or attribute directive in tag file, attribute value does not accept any expressions

原因1:jsp版本问题,如果使用是JSP2.0版本就必须使用<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"

%>标签库,

解决:

 将jsp页面中

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%> 改为

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>

 

2.<%@ page isELIgnored="true"%><!-- 不准使用EL表达式了 -->设置不开启EL表达式,如果开启了也可能使用jstl标签

 

二:c.tld与 c_rt.tld标签库的区别?