jsp fmt頁面顯示value does not support runtime expressions

最近使用Struts2+Spring3+Mybatis3作一個項目,在用戶修改頁面顯示生日,html

org.apache.jasper.JasperException: /WEB-INF/user/PersonInfo.jsp(98,10) According to TLD or attribute directive in tag file, attribute value does not accept any expressions<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>, 結果在jsp頁面出現一個提示,「value does not support runtime expressions」, 若是你不理會這個提示,將出現下面這個錯誤
解決的方式:
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
改成:
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
其餘方式沒作測試,有知道請說一聲!
相關文章
相關標籤/搜索