I have a model object in my controller.
let’s say
Class person{
Date birthDay;
}
when it is show in the form:input, if user input “aaaaa”, of course it will fail and I just direct user to the same page and show them the error by putting the person to model again. but is there a way to keep the user wrong input at the input field?
<form:input path="birthday"/>
will just show empty because the binding fail. do I have to use a DTO object and make everything as string so wrong input can still be shown?
I cannot replicate your situation. Can you provide more code? Mine exapme shows wrong input:
Controller:
Jsp: