Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.2.7
-
None
-
Operating System: All
Platform: All
-
35488
Description
Looking at the code in RequestUtils...
private static boolean canReuseActionForm(ActionForm instance, FormBeanConfig
config)
else
{ Class configClass = applicationClass(config.getType()); className = instance.getClass().getName(); canReuse = configClass.isAssignableFrom(instance.getClass()); formType = "ActionForm"; } ...
}
It seems as though a BeanValidatorForm will never be saved in session.
The "configClass" is the POJO class defined in the struts config file and
the "className" is "BeanValidatorForm", in which case the form is not an
instance of my POJO. Thus, "canReuse" is false. Am i missing something?