<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
Your JSTL taglib URI is wrong. The one which you've there is for legacy JSTL 1.0. Since JSTL 1.1 there's an additional /jsp
path in the taglib URI, because expression language (those ${}
things) has been moved from JSTL to JSP and hence taglibs of JSTL 1.0 and 1.1 are not interchangeable.
Fix it accordingly:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Nothing more needs to be done, assuming that Netbeans is smart enough to autogenerate a Servlet 3.0 compatible web.xml
for Tomcat 7.
See also:
- Our JSTL wiki page
- Our EL wiki page