Excerpt | ||
---|---|---|
| ||
Struts ActionForms |
ActionForms should not contain business objects.
ActionForms can be stored in either the request (preferable) or session (default) scope. If they're in the session scope it's important to implement the form's reset method to initialize the form before each use. ActionForms should be request based unless they are carried across more than one page, as is the case for our mortar ActionForm, SearchHelpParamsForm used in all or our apps with action path /SearchHelpNavAction (see struts-config). But 99% of all others should be request scope.
...