Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 45886 invoked from network); 7 Dec 2003 04:33:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Dec 2003 04:33:49 -0000 Received: (qmail 23410 invoked by uid 500); 7 Dec 2003 04:33:25 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 23163 invoked by uid 500); 7 Dec 2003 04:33:24 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 23149 invoked from network); 7 Dec 2003 04:33:24 -0000 Received: from unknown (HELO BAY0-HMR01.adinternal.hotmail.com) (65.54.241.200) by daedalus.apache.org with SMTP; 7 Dec 2003 04:33:23 -0000 Received: from hotmail.com ([65.54.244.198]) by BAY0-HMR01.adinternal.hotmail.com with Microsoft SMTPSVC(5.0.2195.6713); Sat, 6 Dec 2003 20:33:34 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 6 Dec 2003 20:33:34 -0800 Received: from 24.0.202.4 by bay1-dav63.bay1.hotmail.com with DAV; Sun, 07 Dec 2003 04:33:33 +0000 X-Originating-IP: [24.0.202.4] X-Originating-Email: [mikemil@hotmail.com] X-Sender: mikemil@hotmail.com From: "Mike Miller" To: Subject: [Validator] New user trying to use Javascript validation Date: Sat, 6 Dec 2003 22:33:34 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C3BC48.FBBEAB70" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-ID: X-OriginalArrivalTime: 07 Dec 2003 04:33:34.0196 (UTC) FILETIME=[463DCB40:01C3BC7B] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------=_NextPart_000_0007_01C3BC48.FBBEAB70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am a new user to Struts, using 1.1. I am trying to use the = javascript validation and not having much luck. I am trying to model = after an example found in the Chuck Cavaness's book, but I am not sure = if I have all the working pieces connected correctly: 1) my form (contactForm) extends ValidatorForm. 2) struts-config.xm entry for validator=20 3) validation.xml zip ^\d{5} =20
4) validation-rules.xml pulled from struts downloaded distribution 5) form tag from page - " = method=3D"post" focus=3D"firstName" onsubmit=3D"return = validateContactForm(this);"> 6) added errors.required=3D{0} is required. to my resources. Problem: the javascript validation functions are included but = validateContactForm() function is not generated. When I manually add = that in to call something like validateRequired, I don't get the error = messages. From what I read in the book, the validateXXXX for the form = should have been automatically generated. What do I have wrong? ------=_NextPart_000_0007_01C3BC48.FBBEAB70--