錯誤:
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标簽庫的差別?