Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 67404 invoked from network); 4 Sep 2002 04:47:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Sep 2002 04:47:08 -0000 Received: (qmail 22353 invoked by uid 97); 4 Sep 2002 04:47:36 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 22337 invoked by uid 97); 4 Sep 2002 04:47:36 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 22325 invoked by uid 98); 4 Sep 2002 04:47:35 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Wed, 4 Sep 2002 00:45:46 -0400 From: Rick Reumann X-Mailer: The Bat! (v1.61) Personal Reply-To: Rick Reumann X-Priority: 3 (Normal) Message-ID: <1867253992.20020904004546@reumann.net> To: "Struts Users Mailing List" Subject: Re: [VALIDATOR] Validating Date with DynaValidator In-Reply-To: <003801c25393$497382c0$16021fac@GANDALF> References: <003801c25393$497382c0$16021fac@GANDALF> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - java.hostforweb.net X-AntiAbuse: Original Domain - jakarta.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - reumann.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Tuesday, September 3, 2002, 5:45:57 PM, Axel Stahlhut wrote: AS> This is my validation-rules.xml: AS> classname="org.apache.struts.util.StrutsValidator" AS> method="validateDate" AS> methodParams="java.lang.Object, AS> org.apache.commons.validator.ValidatorAction, AS> org.apache.commons.validator.Field, AS> org.apache.struts.action.ActionErrors, AS> javax.servlet.http.HttpServletRequest" AS> msg="errors.date" AS> jsFunctionName="DateValidations"> AS> and the validation.xml: AS> AS> AS> AS> datePattern AS> dd.MM.yyyy AS> AS> I think you need the depends="required" in the validation-rules for date. You don't want it in the validation.xml but in the rule I think you might need it to get it to work correctly. I have the depends="required" in the validation-rules.xml for date and my dates are getting validated if I leave the field blank, so give it a try. Not positive that's the problem though. -- Rick mailto:maillist@reumann.net -- To unsubscribe, e-mail: For additional commands, e-mail: