2

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}]"

skaffman
  • 390,936
  • 96
  • 800
  • 764
Jothi
  • 14,140
  • 22
  • 62
  • 93

1 Answers1

2

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:

Community
  • 1
  • 1
BalusC
  • 1,040,783
  • 362
  • 3,548
  • 3,513