开发者

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?
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜