My question is as follows. I have a JSP form for registering students with multiple attributes, one of them is the date of birth. Until then I was registering the date only by validating the format (dd / MM / yyyy) and with annotations. But now, I really need to validate the date in a way that the user can not register a date later than today's date and none of the ideas I've had and implemented in JPA have worked. Does anyone know a way to do this?