开发者

JSTL and Format errors

开发者 https://www.devze.com 2023-02-05 02:21 出处:网络
Following the code. <c:set var=\"birthdate\"value=\"${requestScope.evaluation.employee.birthDate}\"></c:set>

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

精彩评论

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