[JSTL] According to TLD or attribute directive in tag file, attribute test does not accept any expressions
원문 : http://levin01.tistory.com/1426
According to TLD or attribute directive in tag file, attribute test does not accept any expressions
위의 에러가 발생했을 때 확인해야 할 부분
1. JSP 1.2 에서 JSTL 1.0 를 사용할 경우
- . rtexprvalue를 false 로 해야함
-. tld 위치 -->http://java.sun.com/jstl
<%@ taglib uri='http://java.sun.com/jstl/core' prefix='c'%>
-. web.xml 에서 servlet 2.3 DTD 사용
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
2. JSP 2.0 에서 JSTL 1.1 를 사용할 경우
- . rtexprvalue를 true 로 해야함
-. tld 위치 --> http://java.sun.com/jsp/jstl
<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>
-. web.xml 에서 servlet 2.4 DTD 사용
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">