aspose file tools*
The moose likes Spring and the fly likes No message display in spring errors tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "No message display in spring errors tag" Watch "No message display in spring errors tag" New topic
Author

No message display in spring errors tag

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi with spring mvc 3.0.5 and jsp, I don't know why there is no error message display in my spring error tag.

Here is my controller class:



The debugging message inside the hasErrors() codeblock is shown on the console. But nothing display on the jsp file.

jsp file:


bean class:



Any suggestion is very appreciated.
Thanks
Sam
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
I have removed my custom validator and use the hibernate default validators only. But the jsp page still not showing the error message.

Here is my bean class:



Controller class:


Looking forward to anybody help to resolve this issue.
Thanks
Sam
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1632
    
    7

You @SessionAttribute is set to adminsignupbean your modelAttribute is set to adminsignup what is the modelAttribute attribute set to on your form tag in your JSP? Something seems off there.


[How To Ask Questions][Read before you PM me]
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
cool, you got sharp eyes. Yes I found that last night.
Thanks
Sam
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: No message display in spring errors tag
 
Similar Threads
Lost value on reloading parent page.
Problem with validation example
How to print validation error message on jsp page
Strange error with validation - Invalid property
which beanValidator should be used with constrain validation