Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 14365 invoked from network); 27 Apr 2005 14:44:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Apr 2005 14:44:49 -0000 Received: (qmail 72810 invoked by uid 500); 27 Apr 2005 14:45:10 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 72741 invoked by uid 500); 27 Apr 2005 14:45:09 -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 72677 invoked by uid 99); 27 Apr 2005 14:45:09 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=HTML_30_40,HTML_MESSAGE,RCVD_BY_IP X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of alexandre.torres@gmail.com designates 64.233.162.199 as permitted sender) Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.199) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 27 Apr 2005 07:45:07 -0700 Received: by zproxy.gmail.com with SMTP id 18so337317nzp for ; Wed, 27 Apr 2005 07:44:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=Iey9RyTfyanV2wTqqTIdFkf+4xy1pZE+ywK2s8KC5Xvql/OhcLg8K0EdmYKgPEYaWvVUPCkY1r8rcpl1zSdtSkkRHbY+fCCm6ATuqZZogg0Sl67HMoRSEag2VATqZQrrrkn9reX+yL5+OsnHsmolHGDUOUwezp+CWmaP/X+AxNk= Received: by 10.36.41.14 with SMTP id o14mr46177nzo; Wed, 27 Apr 2005 07:44:10 -0700 (PDT) Received: by 10.36.31.9 with HTTP; Wed, 27 Apr 2005 07:44:10 -0700 (PDT) Message-ID: Date: Wed, 27 Apr 2005 11:44:10 -0300 From: Alexandre Torres Reply-To: Alexandre Torres To: commons-user@jakarta.apache.org Subject: Validator with tree levels of collections Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_7486_28308840.1114613050257" X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_7486_28308840.1114613050257 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I'm using commons validator with struts. My validator form got a little mor= e=20 tricky... I have a component with class FormA that has a set of components of class RowB that has a set of componens RowC. Something like FormA { public String getCode() { } public void setCode() { } public Vector getBRows() { ... } public void setBRows(Vector v) { ... } } RowB { public String getName() { } public void setName(String n) { ... } public Vector getCRows() { ... } public void setCRows(Vector v) { ... } } RowC { public String getName() { } public void setName(String n) { ... } } I want to define a rule in validator where all "name" instances of RowC,RowB and FormA should be required. For FormA's property "code" I did: .. .. to RowB I coded, using the example of Niall But , for RowC I could not figure out how to make it, since I may have zero, one or more RowC values... can I use indexedListProperty=3D"rowsB.row= sC"=20 ? Thanks. ------=_Part_7486_28308840.1114613050257--