struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarnot Voytek Contr AU HQ/SC <Voytek.Jar...@MAXWELL.AF.MIL>
Subject RE: Why is the reset method called when I submit the form?
Date Thu, 23 Jan 2003 14:37:53 GMT
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:   
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:struts-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message