I have read this interesting question how to pass bean validation error in JSF and I understood how to pass bean validation error into a JSF page. What I ask you is it possible to pass bean validation error using JSP. I'm not using JSF. How can I get bean validation error into a JSP Page in particularly into a form page?
@Entity
@Table
public class User implements Serializeable
{
@Email(message = "Please insert a valid e-mail")
private String email;
}
Let's suppose to have this entity where I have added a constraint to validate e-mail. I would like to show the error message in a jsp page.