This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not getting the validation message in my example.

 
Rahul Ba
Ranch Hand
Posts: 206
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi all,

I am trying to code some of the basic example in spring.In the following code, I am not able to show validation messages.


index.jsp




2.loginFormController.java







3.LogonFormValidator.java




4.springapp-servlet.xml






Question: so, when I do not enter anything in username input field, I am not able to see error messages? Any reason?

Thanks in advance.

Rahul
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know, but wouldn't you want to validate the password regardless of username validation failure?
 
Rahul Ba
Ranch Hand
Posts: 206
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi david,

No, I am just learning the Spring MVC ..hence just want to validate username.

Rahul
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm. Well, more often than not, it's nicer to the user to give them all the error messages at once, rather than making them fill out the form n times.
 
Hong Anderson
Ranch Hand
Posts: 1936
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I recommend to use Spring form tag.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic