I'm not able to retrieve a date field from my jsp.
The field looks like this:
<label for="txtDataEvento">Data do Evento</label>
<input type="text" name="data" class="form-control" id="txtDataEvento" value="${evento.data}" />
The type of my date field in VO is Calendar and I have already put the annotation that has been suggested in some forums.
@DateTimeFormat(pattern="dd/MM/yyyy")
private Calendar data;
I still keep getting the following error message:
Field error in object 'event' on field 'data': rejected value [06/20/2015]; codes [typeMismatch.events.data, typeMismatch.data, typeMismatch.java.util.Calendar, typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable:
Could someone help?