Wie die Anzeige formatiert Kalender geben JSTL?

Ich bin mit dem Kalender-Typ in Java, und ich möchte die Anzeige formatiert Datum in der JSTL.

War ich versucht:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<fmt:parseDate var="date" type="date" dateStyle="short" value="${photo.dateCreated}" />
<c:out value="${data}" />

Aber es funktioniert nicht:

java.text.ParseException: Unparseable Datum

Kann JSTL-format Calendar geben?

InformationsquelleAutor maectpo | 2010-05-17
Schreibe einen Kommentar