Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 3222 invoked from network); 3 Jun 2008 18:22:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 18:22:36 -0000 Received: (qmail 55159 invoked by uid 500); 3 Jun 2008 18:22:30 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 55148 invoked by uid 500); 3 Jun 2008 18:22:30 -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 55137 invoked by uid 99); 3 Jun 2008 18:22:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 11:22:30 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [216.215.144.44] (HELO gvlscexc5.corporate.vox.net) (216.215.144.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 18:21:35 +0000 Received: from EMAIL01.CORPORATE.VOX.NET ([10.1.18.51]) by gvlscexc5.corporate.vox.net with Microsoft SMTPSVC(6.0.3790.3959); Tue, 3 Jun 2008 14:21:55 -0400 Received: from 10.3.23.45 ([10.3.23.45]) by EMAIL01.CORPORATE.VOX.NET ([10.1.18.53]) with Microsoft Exchange Server HTTP-DAV ; Tue, 3 Jun 2008 18:21:55 +0000 User-Agent: Microsoft-Entourage/12.10.0.080409 Date: Tue, 03 Jun 2008 14:21:54 -0400 Subject: Re: need help with validation From: Randy Burgess To: Struts Users Mailing List Message-ID: Thread-Topic: need help with validation Thread-Index: AcjFprMYiley3yvZ+Eq0geRgt6ULUg== In-Reply-To: <772665.99623.qm@web54507.mail.re2.yahoo.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 03 Jun 2008 18:21:55.0711 (UTC) FILETIME=[B41D20F0:01C8C5A6] X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1 X-Virus-Checked: Checked by ClamAV on apache.org Your input could use the chain result type for 'input' which will call the action which populates the drop downs, etc. http://struts.apache.org/2.x/docs/chain-result.html Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Pranav > Reply-To: Struts Users Mailing List > Date: Tue, 3 Jun 2008 08:50:40 -0700 (PDT) > To: > Subject: need help with validation > > Hi, > > I am facing problem with validation. I need urgent help if someone can provide > it I will greatly appreciate that. > > I have an action entryAction which renders entry.jsp. In entry.jsp I display > certain properties from the action class using s:property as well as I display > a list of items in a drop down using s:iterator and and option tags. Along > with this data display I also display a file upload form. Once the user > chooses a file and uploads it then control goes to uploadSuccess.jsp via > UploadAction.java. But if there are validation errors like file name is > missing then control is supposed to go back to input page i.e. entry.jsp. I > have tried both XML based validation as well as validation in Action class > code. The validation works, errors are displayed on entry.jsp as expected but > the property fields and the drop down data that were being displayed before > the validation was triggered are no longer available on the UI. they are all > blank. I do not know how to cause the entryAction to execute when validation > error causes the entry.jsp to display due to name="input">entry.jsp configuration. Can someone please guide me as > to how to solve this problem with struts2? Is there any configuration > parameter that I can pass or is there any kind of interceptor that I have to > use? How do I cause an action to invoke when input result is configured as a > jsp file? > > Thanks > Pranav > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org