This is execution path (is that correct term?): Identify the path to select mapping, Set the locale Set the content-type and non caching headers Preprocess Identify mapping Check if a role is required to perform the action Retrieve or create the form and store in scope Call reset() Populate the form ******* called here.
So the bean is created when its populated, let me reassure you:) Its still much better to put business logic somewhere else than your reset method. chanoch ------------------------------------------------------------- The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Although we routinely screen for viruses, recipients should check this e-mail and any attachment for viruses. We make no warranty as to absence of viruses in this e-mail or any attachments. -----Original Message----- From: Markus Herrmann [mailto:[EMAIL PROTECTED]] Sent: 14 October 2002 10:29 To: [EMAIL PROTECTED] Subject: Re: When *exactly* does reset get called? On 12 Oct 2002 at 10:25, David M. Karr wrote: > From the original description, it sounds like your "reset" method is > using business logic to get data values to populate your fields with. > > From Antoni's explanation of how "reset" is used, I hope it's clear > that won't work very well. > > The ActionForm.reset() method should only be used to CLEAR form > values, before they are populated from the request. You should use > business logic in your Action class to populate form beans. That is exactly my problem. How can an Action class populate a form bean before the form bean is created? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>