my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies 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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
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
which beanValidator should be used with constrain validation
Neither BindingResult nor plain target object for bean name 'loginForm
problem while loading the welcome page
Unable to call Controller method after form submission using Spring MVC 3
Problem with validation example