If you set the form to request scope, a new one is created for each request and the problems you describe would not occur.
-----Original Message----- From: Radek Wisniewski [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: ActionForms recycling - why? Could somebody explain, why we actually need ActionForms recycling? I see one cause: it is "probably" quicker as instantiation of new one. But i see some drawbacks: 1) To use it properly, you must implement reset() method. But using reset() method is error prone, you can easy add new property without adding resetting of this one. 2) If you reset all properties, you can not use such ActionForm for collecting data among more HTML Forms - it is not easy to undestand for new users, for me it's like a trap in this whole design. 3) Sometimes you need prepare (set) some values. The best choice is to put such code in logic tier - Action befor forwarding to view. But in this case reset() may delete those values if you use redirections. 4) Struts code without recycling could be easier. 5) I spouse, reset() is in most cases not very much quicker as making new instance. In any case, instantiatation of new form occurs relative seldom. I think, we schould remove recycling of ActionForms and reset() schould be deprecated. -- Radek Wisniewski --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message and its contents (to include attachments) are the property of Kmart Corporation (Kmart) and may contain confidential and proprietary information. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on information contained herein is strictly prohibited. Unauthorized use of information contained herein may subject you to civil and criminal prosecution and penalties. If you are not the intended recipient, you should delete this message immediately. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]