Posts by Gerson dias • 1 point
1 post
-
0
votes2
answers122
viewsQ: Check password fields with each other in java in spring
How do I validate two password fields if both are equal Usuario usuario = (Usuario) target; if(usuario.getSenha().equals(usuario.getSenha2())) { errors.rejectValue("senha2", "field.compare"); }…
javaasked Gerson dias 1