Servlet 2.3/JSP 1.2とServlet 2.4/JSP 2.0では、使えるJSTLのバージョンが違う。
■Servlet 2.3/JSP
・web.xml
web.xmlと対象のJSPを以下のように修正。
<!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN”
“http://java.sun.com/dtd/web-app_2_3.dtd”>
<web-app>
・jsp
<%@ taglib prefix=”c” uri=”http://java.sun.com/jstl/core” %>
■Servlet 2.4/JSP 2.0
・web.xml
<web-app 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/j2ee/web-app_2_4.xsd”
version=”2.4″>
・jsp
<%@ taglib prefix=”c” uri=”http://java.sun.com/jsp/jstl/core” %>