Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 59176 invoked from network); 23 Jan 2003 14:42:18 -0000 Received: from exchange.sun.com (192.18.33.10) by 208.185.179.12.available.above.net with SMTP; 23 Jan 2003 14:42:18 -0000 Received: (qmail 11964 invoked by uid 97); 23 Jan 2003 14:43:11 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 11895 invoked by uid 97); 23 Jan 2003 14:43:07 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 11815 invoked by uid 98); 23 Jan 2003 14:43:04 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: From: Jarnot Voytek Contr AU HQ/SC To: "'Struts Users Mailing List'" Subject: RE: Why is the reset method called when I submit the form? Date: Thu, 23 Jan 2003 08:37:53 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N sorry, make that: processPopulate(...) in RequestProcessor does 2 and 3, pocessValidate(...) does 4. -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. > -----Original Message----- > From: Jarnot Voytek Contr AU HQ/SC > [mailto:Voytek.Jarnot@maxwell.af.mil] > Sent: Thursday, January 23, 2003 8:36 AM > To: 'Struts Users Mailing List' > Subject: RE: Why is the reset method called when I submit the form? > > > processPopulate(...) in RequestProcessor does 1 and 2, > processValidate(...) > does 4. > > -- > Voytek Jarnot > Quidquid latine dictum sit, altum viditur. > > > > -----Original Message----- > > From: ROSSEL Olivier [mailto:olivier.rossel@airbus.com] > > Sent: Thursday, January 23, 2003 8:29 AM > > To: 'Struts Users Mailing List' > > Subject: RE: Why is the reset method called when I submit the form? > > > > > > > 1. Struts find the formbean on scope or creates a new one > > > 2. formbean.reset() is called to set all properties to > > default values > > > 3. formbean is populated from request parameters > > > 4. formbean.validate() is called (if configured) > > > > Which class makes step 2? ActionServlet? RequestProcessor? > > And step 3? And step 4? > > > > A long time ago, someone suggested to add a control > > in the struts-config.xml so the reset() is not always mandatory > > but can be disabled in the struts-config.xml. > > > > May be it sounds like an anti-pattern from the gurus, > > but to me, it sounds like a very interesting option, > > for real-life apps. Which kind of class should be > > modified for that? > > > > Does it sound like an interesting add-on for Struts in general? > > > > This e-mail is intended only for the above addressee. It may contain > > privileged information. If you are not the addressee you must > > not copy, > > distribute, disclose or use any of the information in it. > If you have > > received it in error please delete it and immediately notify > > the sender. > > Security Notice: all e-mail, sent to or from this address, may be > > accessed by someone other than the recipient, for system > > management and > > security reasons. This access is controlled under Regulation of > > Investigatory Powers Act 2000, Lawful Business Practises. > > > > -- > > To unsubscribe, e-mail: > > For additional commands, e-mail: > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > > -- To unsubscribe, e-mail: For additional commands, e-mail: