Ich habe überall auf Google nach einer Antwort gesucht und es funktioniert nicht.JSTL1.2 Nach TLD oder Attribut-Anweisung in Tag-Datei, akzeptiert Attribut var keine Ausdrücke
Ich erhalte diese Fehlermeldung:
org.apache.jasper.JasperException: /WEB-INF/pages/calendarEntry.jsp (Leitung: 5, Säule: 46) Nach TLD oder Richtlinie in Tag-Datei-Attribut , Attribut var akzeptiert keine Ausdrücke
Hier ist meine jsp Datei
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
<c:set var="eventDate" value="${calendarEntry.date}"/>
<h1 class="page-header">Calendar Event on <fmt:formatDate value="date" var="${eventDate}" /></h1>
der Fehler in der letzten Zeile geschieht. fmt
Web App declartion
<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">
Maven depedencies
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.0</version>
<scope>provided</scope>
</dependency>
Deployment Environment - Tomcat 8
Wäre sicher hilfreich, wenn Sie Kommentar vor Abstimmung verlassen. – sethu