esta dando erro quanfo tendo exibir uma data de nascimento ou incluir
há estouusando JSTL
erro:
javax.servlet.jsp.JspException: ServletException in ‘/candidato/dadosPessoais.jsp’: /candidato/dadosPessoais.jsp(26,1) According to TLD or attribute directive in tag file, attribute value does not accept any expressions
jsp
<%@ page language=“java” %>
<%@ taglib prefix=“c” uri=“http://java.sun.com/jsp/jstl/core” %>
<%@ taglib prefix=“fn” uri=“http://java.sun.com/jsp/jstl/functions” %>
<%@ taglib prefix=“fmt” uri=“http://java.sun.com/jstl/fmt” %>
<jsp:useBean id=“candidato.dtNascimento” class=“java.util.Date” />
<div class=“textform”>Data de Nascimento:
<fmt:formatDate value="${candidato.dtNascimento}" type=“date” dateStyle=“full”/>
</div>
Form
private Date dtNascimento;
public Date getDtNascimento() {
return dtNascimento;
}
public void setDtNascimento(Date dtNascimento) {
this.dtNascimento = dtNascimento;
}
Action
if(request.getParameter(“gravar”) != null){
candidato.setDtNascimento(form.getCandidato().getDtNascimento());
}