This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Spring and the fly likes No message display in spring errors tag Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Spring
Reply 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: 205
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: 205
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: 1282

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: 205
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.
Strange error with validation - Invalid property
which beanValidator should be used with constrain validation
Problem with validation example
How to print validation error message on jsp page