DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16065>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16065 Do I have a separate ActionForm bean for every HTML form Summary: Do I have a separate ActionForm bean for every HTML form Product: Struts Version: Unknown Platform: All OS/Version: All Status: NEW Severity: Enhancement Priority: Other Component: Documentation AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This is an interesting question. As a newbie it is a good practice to create a new ActionForm for each action sequence. You can use DynActionForms to help reduce the effort or use the code generation facilities of your IDE. Some of the issues around re-use of form beans are as follows: Validation: You might want different validation rules depending upon the action that is currently executing. Persistance: Be careful that a form populated in one action is not unexpectedly reused in a different action. Multiple <form-bean> entries for the same form in struts-config.xml can help or specifing the bean in request scope. Checkboxes: If you do as reccomended and reset your checkbox fields and the page doesn't have all the checkboxes from the form then you will be unexpectedly clearing your fields. Workflow: The most common need for form re-use is workflow. Out of the box struts has limited support for workflow. You will need a good understanding of the environment (ActionForms, Actions, etc) prior to being able to put together a smooth workflow environment using a single form. As you get more comfortable there are a few shortcuts you can use to in order to re-use your action forms. Unfortunately, most of the shortcuts depend upon how you have chosen to implement your Action / ActionForm combinations. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
