jsp fmt页面显示value does not support runtime expressions,According to TLD or attribute directive in tag file, attribute value does not accept any expressions

最近使用Struts2+Spring3+Mybatis3做一个项目,在用户修改页面显示生日,

<fmt:formatDate value="${user.birthday}" pattern="yyyy-MM-dd"/>, 结果在jsp页面出现一个提示,“value does not support runtime expressions”, 如果你不理会这个提示,将出现下面这个错误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
解决的方式:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>

改为:

<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

其他方式没做测试,有知道请说一声!

点赞