| 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
|
 |
 |
|
|
subject: No message display in spring errors tag
|
|
|