Is it possible to do that?
I have made a custom annotation that checks if 2 fields are equal from here.
I would like to validate if a field "password" is equal to another field "confirmedPassword". Now if they are not, I'd like the error message to be displayed linked to the confirmedPassword field.
I display errors in jsp with <form:errors path="" />
. Is there another way to do this?
Also there could also be another 2 fields in this annotation email
and confirmedEmail
. How could I make the distinction between which global error to put where...
I hope it all makes sense..