What is the difference between DynaActionForm and ActionForm ?
Someone said DynaActionForm is not really dynamic since you still have to restart the server after you re-configured the properties in the struts-config.xml file (or else modifications won’t be picked up)
In case of
ActionForm,We have to provide
settersandgetterswhenever user adds a control. The same process is repeated again and again when user creates a view.But, in case of
DynaActionFormIt eliminates this burden and creates the form bean itself. This way user don’t have to write
settersandgetters. No bean class is required for theDynaActionFormand we will declare the form beans asDynaActionFormtype instruts-confing.xml. We will declare the properties and their type in thestruts-config.xmlUpdate