Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 12728 invoked from network); 8 Sep 2007 04:51:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2007 04:51:40 -0000 Received: (qmail 41030 invoked by uid 500); 8 Sep 2007 04:51:24 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 40986 invoked by uid 500); 8 Sep 2007 04:51:24 -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 40975 invoked by uid 99); 8 Sep 2007 04:51:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2007 21:51:24 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Sep 2007 04:52:45 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ITsHb-0005Vm-VU for user@struts.apache.org; Fri, 07 Sep 2007 21:50:59 -0700 Message-ID: <12566796.post@talk.nabble.com> Date: Fri, 7 Sep 2007 21:50:59 -0700 (PDT) From: tglenister To: user@struts.apache.org Subject: Bizarre validation issue MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tglenister@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org I am using Struts 2.06 and am seeing a bizarre issue - One of my Actions is validating fine - if the page is posted without required data/formats the page is returned with error messages and all the fields are still filled in. We'll refer to this as action 1. Another action (action 2) throws validation errors even if all the requirements are met, and the page is returned with the fields cleared. I went round and round trying to isolate the issue, and found something strange. I copied the validation XML from action 1 into action 2's file. I copied the JSP code from the input for action 1 to action 2, so now we have validation xml and JSP code that is identical. The action declarations in struts.xml are virtually identical (I changed the Contact results from contact.jsp to register.jsp for consistency.) register.jsp register.jsp register.jsp register.jsp When I call the doregister action from either the register.jsp or contact.jsp pages (which are identical), no problem - the validation occurs as expected and the page is returned with data filled in. When I call contact from either page, the validation fails (no matter what the input) and the fields are cleared out. Basically it likes the doregister action but doesn't like the contact action. Does anyone have a clue what's going on or where I should look? I'm at the end of my rope and am about to throw out the validation altogether. Thanks in advance. -- View this message in context: http://www.nabble.com/Bizarre-validation-issue-tf4404926.html#a12566796 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org