Hi,
Using XML date validation, how do I check if the entered date is in the future or not ?
If by "XML date validation", you mean the commons-validator framework and ValidatorForm or a class derived from it, there is no built-in support for this. On the other hand, it is possible to write custom validator classes, register them by name in the config file, and then use the name as one of the values in the "depends" attribute of your per-form validation.
Have a look at the validator-rules.xml file and the org.apache.struts.validator.FieldChecks class for some idea of how this is done. I'll admit that I don't find it extremely straightforward, but you can get pretty far by copying what comes built in to Struts.
Joe
Thanks
--Deepak
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com "Narrow minds are weapons made for mass destruction" -The Ex
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]