可以使用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 }"/>
posted on 2007-10-14 17:47
神的小火柴 阅读(251)
评论(0) 编辑 收藏