Your taglib URI is wrong.
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
This URI is from the old and EOL'ed JSTL 1.0 library. Since JSTL 1.1, you need an extra /jsp
in the path because the taglib's internal workings were changed because the EL part was moved from JSTL to JSP:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Further, the JAR files which you attempted to drop in /WEB-INF/lib
are wrong. The javax.servlet.jsp.jstl-api-1.2.1-javadoc.jar
is contains only the JSTL javadocs and the javaee.jar
contains the entire Java EE API which may be desastreus because Tomcat ships with parts of it already (JSP/Servlet) which may conflict.
Remove them all. You need the jstl-1.2.jar file.
See also: