Can I have more than one form associated with one action?.
I have a scenario where I have a search form, entry form. I want to make use of DispatchAction to search, Add/Update/Delete. In this case I will have two ActionForm that is searchForm and EntryForm. <form-bean name="CreateErrorMessageActionForm" type="demo.struts.CreateErrorMessageActionForm" /> <form-bean name="SearchErrorMessageActionForm" type="demo.struts.SearchErrorMessageActionForm" />
I definitely don't know the answer but if u want it urgent, why don't u use a single action form?
Joined: Aug 18, 2003
If I don't get any solution for my question, then I think I would probably go with having single form for my search and entry forms. But I feel this is just kind of manipulating as some of the fields in my form bean will always be null. I mean object will never be complete or contain complete information. with this approach I am not sure if there will be problems between requests.