You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peggy Davidson <ti...@mindspring.com> on 2002/10/11 14:59:55 UTC
RE: date validation problem
If you search the archive you will find that there was a patch applied
shortly after the beta 2 release for the StrutsValidator Class. I resolved
mine by downloading the latest struts.jar only and it fixed the problem just
fine. Or, you can download the source file and fix the problem and rebuild
See thread:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg40614.html
Peggy
-----Original Message-----
From: Nicolas Robert [mailto:nr@peopleware.lu]
Sent: Friday, October 11, 2002 9:02 AM
To: 'Struts Users Mailing List' (E-mail)
Subject: date validation problem
Hello,
I use struts validator to check if a date that's not required has a correct
format.
It's working fine, but if the user leave the date field empty and submit the
form, Struts generate an invalide date format error.
Here's the sample of my validator.xml file :
...
<field property="item.divers_dateLibre"
depends="date" page="1">
<arg0 key="validator.item.divers_dateLibre"/>
</field>
...
Please, could you tell me how to inform Struts validation system that we
only want to check if the date format is correct when the date is not empty?
Thanks
Nicolas
--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>