What you actually need is to add the following line on top of your JSP files:
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
Also, you need to download the JSTL jar files from here and add them to WEB_INF/lib
folder.
Found my answer here:
https://stackoverflow.com/a/8400733/3758439