| 可以使用fmt <%@ ? taglib ? prefix="fmt" ? uri="http://java.sun.com/jstl/fmt" ? % >
出现错误 javax.servlet.ServletException: org.apache.jasper.JasperException: /home.jsp(81,9) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
改为: <%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt" %>
PS:classpath中必须加入standard.jar和jstl.jar
<fmt:formatDate pattern="yyyy-mm-dd" value="${content.logPosttime }"/>
|