Hi Wendy I understand that this is how the framework behaves - I'm not sure I understand why.
Anyway, adding redirect="true" does work for that problem, but it also cleans other things from the request like ActionMessages that I want to pass to the EditAction. Thanks Rivka -----Original Message----- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Sunday, June 26, 2005 7:50 AM To: Struts Users Mailing List Subject: Re: can't remove form bean From: "Rivka Shisman" <[EMAIL PROTECTED]> > When creating a new Item I call EditItemAction (mehod create) > The ItemForm is created and then passed to editItem.jsp >From there it arrives to SaveItemAction (method create) okay so far > and if the item was successfully saved it is returned with a success > message to EditItemAction (method create) - to enable the user to create > another item. I think the problem is here: > <forward name="create_success" path="EditMsvItem.do?action=create"> When you _forward_ to EditItemAction after you save your item, you're still working with the same request, the one that has your form in it. Even if you remove the form, everything is still there in the request, and I think he framework is re-constituting the form from the request, and passing it into EditItemAction. Consider forwarding instead to a JSP, perhaps a confirmation page, with a link to add another item. If you really want to chain the Actions, try adding redirect="true" to the <forward> in struts-config.xml-- that will make the browser send a new request, which will not have the "old" form values in it. -- Wendy Smoak --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************************************************** The contents of this email and any attachments are confidential. They are intended for the named recipient(s) only. If you have received this email in error please notify the system manager or the sender immediately and do not disclose the contents to anyone or make copies. ** eSafe scanned this email for viruses, vandals and malicious content. ** ************************************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]