File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Validation -JSR303 and the fly likes How to print validation error message on jsp page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java JSRs » Validation -JSR303
Bookmark "How to print validation error message on jsp page" Watch "How to print validation error message on jsp page" New topic
Author

How to print validation error message on jsp page

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to print validation error message on jsp page
 
Similar Threads
problem while loading the welcome page
which beanValidator should be used with constrain validation
Unable to call Controller method after form submission using Spring MVC 3
Problem with validation example
Neither BindingResult nor plain target object for bean name 'loginForm