JSTL and Format errors
Following the code.
<c:set var="birthdate" value="${requestScope.evaluation.employee.birthDate}"></c:set>
<fmt:formatDate pattern="ddMMyyyy" type="both" value="${birthdate}"/>
Error: Custom tag attribute value cannot be runtime expression. value: "[${birthdate}]"开发者_JAVA百科
Ensure that the JSTL fmt
taglib is declared as per JSTL 1.1 documentation:
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
Note the /jsp
path.
See also:
- How to install/use JSTL?
精彩评论