記錄使用jstl時常遇到的問題及解決方法
1、環境:tomcat5.0.28
???????? jstl_1.1.2.jar
???????? standard-1.1.2.jar
?? 現象:使用el標簽,如:<c:out value="${now}">時報錯????????
???????? According to TLD or attribute directive in tag file, attribute value does not accept any expression
?? 解決方法:1、環境:tomcat5.0.28
???????? jstl_1.1.2.jar
???????? standard-1.1.2.jar
?? 現象:使用el標簽,如:<c:out value="${now}">時報錯????????
???????? According to TLD or attribute directive in tag file, attribute value does not accept any expression
?? 1)更改web.xml里標簽的url為:
??? ??? http://java.sun.com/jsp/jstl/core
??? ??? http://java.sun.com/jsp/jstl/fmt
???? ps:以前在別的環境下用這種方式可以解決,但在這里沒有解決上述的問題
?? 2)修改要使用el標簽的tld文件,如:c.tld,fmt.tld
???? 全局替換
?????? find: <rtexprvalue>false</rtexprvalue>
?????? replace:<rtexprvalue>true</rtexprvalue>
????
???