• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to print validation error message on jsp page

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, with spring mvc 3.0 and jsp, I created a custom validator for comparing password and confirmPassword.
When errors occurs, the validator prints the error to the console, but nothing on the page via errors tag.

Here is my validator interface:



jsp:



bean class:


Controller class:


Any suggestion is very appreciated.
Thanks
Sam
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic