Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Date validation using validator

 
Karthik Rajendiran
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends
I am trying to do validate date with validator framework
1. Valid date check
2. Numberic value entry check

I use mask and date for that field
Can both be used for checking
My mask pattern
for yyyy-MM-dd format


When i enter 2007-03-13, i get validation error.

One more doubt, will the date validator say error if i enter character data in date field.
 
Karthik Rajendiran
Ranch Hand
Posts: 217
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
I solved the issue
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic