wood burning stoves 2.0*
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
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
 
Similar Threads
conditional Date field validation in struts validation.xml
how to validate date type parameter with validator
Having problem with struts validator for error message
Struts Validator FrameWork = JavaScript Error
date comparison in struts