File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Can't display validation error message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Reply Bookmark "Can Watch "Can New topic
Author

Can't display validation error message

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 204
Hi,

With Spring MVC 3.0.6, my web application can't display error message using java validation annotations.

Here is my pojo class:

book.java:


BookFormController.java file:



bookForm.jsp file:



When entered nothing in the 'name' and 'description' edit box and press the Create button, error message is not shown.

What would be the problem and missing code in my files?

Any suggestion would be very appreciated.
Thanks
Sam
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Can't display validation error message
 
Similar Threads
Validation errors not displayed
New value is inserted into db in @ManyToOne relation instead of update
Problem with validation example
org.springframework.beans.NotReadablePropertyException
Spring MVC Request Mapping