This isn't so much a programming problem with Spring but a request for advice.
I have a form on a JSP requiring a user to enter their ID number.
The form on the page calls a method in a controller. A validator is called from the controller.
If the user enters a non-numeric value, I believe I can check for this using:
typeMismatch.java.lang.Integer=You have input a non-numeric value into a field expecting a number...
But my question relates to the checking of the user's ID in the database, i.e. if the ID doesn't exist, then input should be rejected.
So, can services be used in validator classes? Are there any considerations against this?