Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 62670 invoked from network); 12 Jul 2005 07:22:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Jul 2005 07:22:57 -0000 Received: (qmail 97290 invoked by uid 500); 12 Jul 2005 07:22:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 97174 invoked by uid 500); 12 Jul 2005 07:22:36 -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 97161 invoked by uid 99); 12 Jul 2005 07:22:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2005 00:22:36 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [195.143.20.127] (HELO mail.pl-edv.de) (195.143.20.127) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jul 2005 00:22:33 -0700 Received: from eventsoft.dyndns.org (unknown [81.92.163.43]) by mail.pl-edv.de (Postfix) with ESMTP id 847FE33146 for ; Tue, 12 Jul 2005 09:22:33 +0200 (CEST) Received: from [192.168.100.167] (unknown [192.168.100.167]) by eventsoft.dyndns.org (Postfix) with ESMTP id 70CCDA386D for ; Tue, 12 Jul 2005 09:22:33 +0200 (CEST) Message-ID: <42D37076.10402@eventsoft.de> Date: Tue, 12 Jul 2005 09:25:42 +0200 From: Borislav Sabev User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Struts Users Mailing List Subject: Re: Validation problem References: <21665382.1121115794310.JavaMail.root@wamui-blood.atl.sa.earthlink.net> <1c19f39105071114341b92a43a@mail.gmail.com> <42D2E986.4050702@reumann.net> <1c19f39105071114559e6ef84@mail.gmail.com> <42D2EEBA.8030802@reumann.net> In-Reply-To: <42D2EEBA.8030802@reumann.net> Content-Type: multipart/mixed; boundary="------------040705020706090302070206" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --------------040705020706090302070206 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Rick Reumann wrote: > > if ( errors != null && !errors.isEmpty ) <-- this part can probably be > shortened, I was too lazy to figure out what really gets returned if > validation passes.. a null or empty ActionErrors? > here is part of the code of RequestProcessor, so in both cases the form is considered valid ActionMessages errors = form.validate(mapping, request); --->>> if ((errors == null) || errors.isEmpty()) { if (log.isTraceEnabled()) { log.trace(" No errors detected, accepting input"); } return (true); } Regards Borislav --------------040705020706090302070206 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org --------------040705020706090302070206--