Thanks Joe. ----- Original Message ----- From: "Joe Germuska" <[EMAIL PROTECTED]> To: "deepak" <[EMAIL PROTECTED]>; "Struts Users Mailing List" <user@struts.apache.org> Sent: Wednesday, January 12, 2005 7:41 PM Subject: Re: XML date validation
> At 5:04 PM +0530 1/12/05, deepak wrote: > >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]
*********************************************************************** This email (which includes any files transmitted with it) is intended for the above named only. It may contain privileged, confidential or price sensitive information. If you are not the intended recipient, please notify the sender immediately and destroy all copies of this email, as well as deleting the email from your computer system. This email is protected by copyright. If you are not the intended recipient, you are not entitled to use, disclose or copy the email or rely on it in any way whatsoever. ***********************************************************************
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]