Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 89840 invoked from network); 29 Aug 2007 19:46:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Aug 2007 19:46:33 -0000 Received: (qmail 42031 invoked by uid 500); 29 Aug 2007 19:46:20 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 41923 invoked by uid 500); 29 Aug 2007 19:46:20 -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 41911 invoked by uid 99); 29 Aug 2007 19:46:20 -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:46:20 -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 209.85.134.189 as permitted sender) Received: from [209.85.134.189] (HELO mu-out-0910.google.com) (209.85.134.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Aug 2007 19:46:16 +0000 Received: by mu-out-0910.google.com with SMTP id g7so327567muf for ; Wed, 29 Aug 2007 12:45:54 -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=ApAN/FxZHo+WWbq207srR5FGzyl6r8gPi7wbGeXfP6w0aMQObP9LpgZP+ZSoia7IHeSyZYL5ZRSbGSHIz+N3XWhZJhS/frXr0F1fSXEKf8iyWKxR3bpkusLQeKQoa/TwaM7nUyP2jRDdnfkyFB/lbXk31Bppdkuf+56VDXONIb8= 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=ndrN7ZYngiedRRUPPEbghs8OankFQeLtbxNNvyQTYGLRq2mEKRPX5MaFlywXJtIlW9gscvbrmHvaC23jKCldhm4QTqav+ayZzkyC/PVdGu0CQL+1kCd9+M/+YUXbUhhg3HA5a8sQn7Xe0JTNssKAF3QwLYSqLgZ9uK3UN+mA5HM= Received: by 10.82.106.14 with SMTP id e14mr1991223buc.1188416754073; Wed, 29 Aug 2007 12:45:54 -0700 (PDT) Received: by 10.66.232.8 with HTTP; Wed, 29 Aug 2007 12:45:54 -0700 (PDT) Message-ID: Date: Wed, 29 Aug 2007 15:45:54 -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_11711_14962137.1188416754018" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11711_14962137.1188416754018 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hey Joseph sorry I think I need something exactly like this: https://issues.apache.org/struts/browse/STR-443 On 8/29/07, Pavel Sapozhnikov wrote: > > 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 > -- Pavel Sapozhnikov xFact, Inc pavel@xfact.com ------=_Part_11711_14962137.1188416754018--