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

date validation

 
Venkata Aditya
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i have a problem with validating date. I am using struts validation framework for validating date. I have taken input type textbox and in form i am using string. and validating date. But when i give yyyy year as 2s07
the date will not give me any errors but when i insert s007 it validates and gives me error. Is there any way to validate the year using validtion.
i tried using simple date format and other date parsers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic