Jothi
Jothi

Reputation: 15090

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

Upvotes: 2

Views: 641

Answers (1)

BalusC
BalusC

Reputation: 1109222

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:

Upvotes: 2

Related Questions