Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 94326 invoked from network); 1 Nov 2005 14:10:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Nov 2005 14:10:57 -0000 Received: (qmail 60267 invoked by uid 500); 1 Nov 2005 14:10:46 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 60153 invoked by uid 500); 1 Nov 2005 14:10:44 -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 60141 invoked by uid 99); 1 Nov 2005 14:10:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2005 06:10:44 -0800 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_HAS_ULINE_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [68.142.206.35] (HELO web32805.mail.mud.yahoo.com) (68.142.206.35) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 01 Nov 2005 06:10:40 -0800 Received: (qmail 55382 invoked by uid 60001); 1 Nov 2005 14:10:22 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Fl0rRlGLHHpaDnpFcpnuMw5uTCqHPYvkxk4KhCnVfF4eBj1brzpVRcvUbKg23KBPH8CQgGI15frB/bY1rWefnITpN++13p1b42uCkSOMlwBD+DbGOCpR0ZDKnS/FQkLfYm/slHhBca21v1FAKITTiz4oIYN26O6BiVn2VrKL1XI= ; Message-ID: <20051101141022.55380.qmail@web32805.mail.mud.yahoo.com> Received: from [192.77.198.12] by web32805.mail.mud.yahoo.com via HTTP; Tue, 01 Nov 2005 06:10:22 PST Date: Tue, 1 Nov 2005 06:10:22 -0800 (PST) From: Ashish Kulkarni Subject: How do i do this validation in struts using validWhen To: user@struts.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Suppose i have entry text fields on a jsp, named ttype and comment, i want to add a validation saying that if ttype='2', then comment cannot be blank, if ttype='3' or any other value then comment can be blank, what i am trying is following
test (ttype==2) and (comment != null)
Will this work Ashish __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org