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