Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 83779 invoked from network); 29 Aug 2007 19:22:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 19:22:47 -0000 Received: (qmail 4587 invoked by uid 500); 29 Aug 2007 19:22:32 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 4559 invoked by uid 500); 29 Aug 2007 19:22:32 -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 4548 invoked by uid 99); 29 Aug 2007 19:22:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 12:22:32 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of pavel.sapozhnikov@gmail.com designates 64.233.182.184 as permitted sender) Received: from [64.233.182.184] (HELO nf-out-0910.google.com) (64.233.182.184) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 19:22:28 +0000 Received: by nf-out-0910.google.com with SMTP id b21so233354nfd for ; Wed, 29 Aug 2007 12:22:06 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=t/ne10ttjfQTS8qzmiHm9p7putTVZ/I7QeARyUSufoaxnGoNM3PEJVwASU6YTq9apg5pDF/HK4uIVxabzzDHsxTPSB0DfqteJna6UMzA0IHYuBviKTCyE6ZHbmfbAOP6/GbKxnUrdEAC37KbXijTCKc8XS2Ct5FpO18R3mDg6t8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=XPgRtAU8aCK2m06c6yrXB3MwPs9Qf059TaOxnwswD6/aC3/1P5hVPt5v/TDBZ12/wpycIZiciblROgjOTCxhxlfzBAV1Nzc3gR5ys1poQ1ELwMjV0vWhkIz5m/n5Rw6o8ZL2nWfONw5KgHYU00pnXxJJxW/xd6MpOD3ea4ZiVs4= Received: by 10.82.160.19 with SMTP id i19mr1929107bue.1188415319734; Wed, 29 Aug 2007 12:21:59 -0700 (PDT) Received: by 10.66.232.8 with HTTP; Wed, 29 Aug 2007 12:21:59 -0700 (PDT) Message-ID: Date: Wed, 29 Aug 2007 15:21:59 -0400 From: "Pavel Sapozhnikov" To: "Struts Users Mailing List" Subject: Re: Validation chaining in struts2 In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11626_14796099.1188415319589" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11626_14796099.1188415319589 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey Joseph. I think thats something similar to what I am asking but I am not even quiet sure. I was also wondering what if I have a method in class and I have ClassName-methodName-validation.xml file which would validate those base things so then in struts.xml I can do toThatMethod and when it redirects it will automatically do the validation from that xml. So would that serve my purpose? On 8/29/07, j alex wrote: > > Sounds very similar to the problem i had but no straightforward solution > yet > ; i've put this for enhancement on JIRA - > > https://issues.apache.org/struts/browse/WW-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41901 > > Can you please check if this is what you need as well? > > -Joseph > > > > On 8/29/07, Pavel Sapozhnikov wrote: > > > > Hey guys. Could somebody provide some input on validation chaining in > s2. > > Here's what I need to do. So there has to be a base validation which > would > > validate variable x and variable y then every other class has its own > > validation for example Login class would validate if username and > password > > exist but the prerequisite is that base validation should pass. How do I > > do > > that in struts2. Any input would be appreciated. Thanks. > > > > -- > > Pavel Sapozhnikov > > xFact, Inc > > pavel@xfact.com > > > -- Pavel Sapozhnikov xFact, Inc pavel@xfact.com ------=_Part_11626_14796099.1188415319589--