我正在尝试使用以下方式格式化日期:
<fmt:formatDate value="${newsletter.createdOn}" pattern="MM/dd/yyyy"/>
newsletter 是一个createdOn
属性为 的对象java.util.Date
。
当我调用上一句时,我得到:
根据 TLD,属性值不接受表达式。
我正在导入 fmt
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
有谁知道我该如何解决这个问题?
我正在使用tomcat附带的jstl.jar。
在 jstl.jar/META-INF/MANIFEST.MF 下保持:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3
Created-By: 1.4.2-b28 (Sun Microsystems Inc.)
Specification-Title: JavaServer Pages Standard Tag Library (JSTL)
Specification-Version: 1.1
Implementation-Title: JavaServer Pages Standard Tag Library API Refere
nce Implementation
Implementation-Version: 1.1.0-D13
Implementation-Vendor: Sun Microsystems, Inc.
Implementation-Vendor-Id: com.sun
Extension-Name: javax.servlet.jsp.jstl
我正在使用 Apache Tomcat 版本 6.0.14