Return-Path: Delivered-To: apmail-struts-dev-archive@www.apache.org Received: (qmail 69487 invoked from network); 28 Jun 2004 15:33:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Jun 2004 15:33:06 -0000 Received: (qmail 59042 invoked by uid 500); 28 Jun 2004 15:33:04 -0000 Delivered-To: apmail-struts-dev-archive@struts.apache.org Received: (qmail 58946 invoked by uid 500); 28 Jun 2004 15:33:02 -0000 Mailing-List: contact dev-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Developers List" Reply-To: "Struts Developers List" Delivered-To: mailing list dev@struts.apache.org Received: (qmail 58922 invoked by uid 99); 28 Jun 2004 15:33:02 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received: from [206.190.38.95] (HELO web50608.mail.yahoo.com) (206.190.38.95) by apache.org (qpsmtpd/0.27.1) with SMTP; Mon, 28 Jun 2004 08:32:57 -0700 Message-ID: <20040628153242.12502.qmail@web50608.mail.yahoo.com> Received: from [65.196.111.30] by web50608.mail.yahoo.com via HTTP; Mon, 28 Jun 2004 08:32:42 PDT Date: Mon, 28 Jun 2004 08:32:42 -0700 (PDT) From: kalpesh modi Subject: action based client side validation To: dev@struts.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I made changes to tag for version 1.2 And sorry about the typo in the previous mail. It is actually validator-rules.xml and not validation.xml The change that the validator-rules.xml needs is the method name needs to be passed to the javascript functions. ------------------------------------------------- function validateRequired(form,actionMethod) { var isValid = true; var focusField = null; var i = 0; var fields = new Array(); oRequired = new actionMethod(); ------------------------------------------------ Here actionMethod represents the corresponding method name for a particular action. So all the javascript functions in the validator-rules.xml needs to be modified to take two parameters just as above. This is the only change that needs to be made to the validator-rules.xml Thanks, -Kalpesh ===== Regards, -Kalpesh (703)506-8229 X-3308 (Work) (203)676-9385 (Mobile) __________________________________ Do you Yahoo!? Yahoo! Mail - 50x more storage than other providers! http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org For additional commands, e-mail: dev-help@struts.apache.org