Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

No message display in spring errors tag

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cool, you got sharp eyes. Yes I found that last night.
Thanks
Sam
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic