In the context of the given ModuleConfig
and this
ActionContext
, look for an existing
ActionForm
in the specified scope. If one is found, return
it; otherwise, create a new instance, add it to that scope, and then
return it.
Returns:
The ActionForm for this request
Parameters:
-
formName - The name attribute of our ActionForm
-
scopeName - The scope identier (request, session)
Throws:
-
IllegalAccessException - If object cannot be created
-
InstantiationException - If object cannot be created
-
IllegalArgumentException - If form config is missing from module
or scopeName is invalid