Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 64576 invoked from network); 2 Aug 2006 01:57:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Aug 2006 01:57:40 -0000 Received: (qmail 36831 invoked by uid 500); 2 Aug 2006 01:57:31 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 36678 invoked by uid 500); 2 Aug 2006 01:57:30 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 36667 invoked by uid 99); 2 Aug 2006 01:57:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 18:57:30 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.157.148.20] (HELO mail20.bluerapport.com) (202.157.148.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Aug 2006 18:57:27 -0700 Received: from mail.bluesingapore.com (unknown [203.125.247.10]) by mail20.bluerapport.com (Postfix) with ESMTP id C14AF7E8A27 for ; Wed, 2 Aug 2006 09:59:20 +0800 (SGT) Received: from cpandey ([10.0.0.171]) by bluesingapore.com with MailEnable ESMTP; Wed, 02 Aug 2006 09:54:59 +0800 From: "Chetan Pandey" To: "'Struts Users Mailing List'" Subject: Client Side Validation Date: Wed, 2 Aug 2006 09:54:56 +0800 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_010A_01C6B619.B5F3F6E0" X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: Aca11qeBnTQtG/pMQMqXepWr1WqOQA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Message-Id: <20060802015920.C14AF7E8A27@mail20.bluerapport.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_NextPart_000_010A_01C6B619.B5F3F6E0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi All: I am trying to do Client-Side Validation for my JSP Form: . . . . But the problem is I only see Server Side Validations no Client Side Validations. This is the Validator I am using which I copied from the Net: /*************************************************************************** ********************/ = 0) { value = field.options[si].value; } } else { value = field.value; } if (trim(value).length == 0) { if (i == 0) { focusField = field; } fields[i++] = oRequired[x][1]; isValid = false; } } } if (fields.length > 0) { focusField.focus(); alert(fields.join('\n')); } return isValid; } // Trim whitespace from left and right sides of s. function trim(s) { return s.replace( /^\s*/, "" ).replace( /\s*$/, "" ); } ]]> /***************************************************/ Does anyone have any Idea why I don't see Client Side Validation ------=_NextPart_000_010A_01C6B619.B5F3F6E0--