wood burning stoves 2.0*
The moose likes Spring and the fly likes Can't display validation error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Can Watch "Can New topic
Author

Can't display validation error message

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Can't display validation error message