struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "deepak" <dee...@ltp.soft.net>
Subject Re: XML date validation
Date Thu, 13 Jan 2005 12:43:51 GMT
Thanks Joe.

----- Original Message ----- 
From: "Joe Germuska" <Joe@Germuska.com>
To: "deepak" <deepak@ltp.soft.net>; "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
> Joe@Germuska.com
> http://blog.germuska.com
> "Narrow minds are weapons made for mass destruction"  -The Ex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message