title: JSTL1.2 According to TLD or attribute directive in tag file, attribute var does not accept any expressions
body: <p>I have been searching all over google for an answer and it doesn't work.</p>
  
  <p>I am getting this error:</p>
  
  <p>org.apache.jasper.JasperException: /WEB-INF/pages/calendarEntry.jsp (line: 5, column: 46) According to TLD or attribute directive in tag file, attribute var does not accept any expressions</p>
  
  <p>Here's my jsp file</p>
  
  <pre><code>&lt;%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %&gt;
  &lt;%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %&gt;
  &lt;div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"&gt;
      &lt;c:set var="eventDate" value="${calendarEntry.date}"/&gt;
      &lt;h1 class="page-header"&gt;Calendar Event on &lt;fmt:formatDate value="date" var="${eventDate}" /&gt;&lt;/h1&gt;
  </code></pre>
  
  <p>The error is happening at the last line. fmt</p>
  
  <p>Web App declartion</p>
  
  <pre><code>&lt;web-app version="3.1"
       xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
  http://java.sun.com/xml/ns/javaee
  http://java.sun.com/xml/ns/javaee/web-app_3_1.xsd"&gt;
  </code></pre>
  
  <p>Maven Depedencies</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;jstl&lt;/groupId&gt;
      &lt;artifactId&gt;jstl&lt;/artifactId&gt;
      &lt;version&gt;1.2&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet-api&lt;/artifactId&gt;
      &lt;version&gt;3.1.0&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;javax.servlet.jsp&lt;/groupId&gt;
      &lt;artifactId&gt;javax.servlet.jsp-api&lt;/artifactId&gt;
      &lt;version&gt;2.3.0&lt;/version&gt;
      &lt;scope&gt;provided&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>Deployment Environment - Tomcat 8</p>