File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts Date validation using validator Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Date validation using validator" Watch "Struts Date validation using validator" New topic
Author

Struts Date validation using validator

Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
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.


SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
Karthik Rajendiran
Ranch Hand

Joined: Aug 13, 2004
Posts: 211
Thanks
I solved the issue
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Date validation using validator