Friday, February 2, 2007

What is the difference between Action Form and DynaActionForm?

a) In struts 1.0; action form is used to populate the html tags in jsp using struts custom tag. When the java code changes, the change in action class is needed. To avoid the changes in struts 1.1 dyna action form is introduced. This can be used to develop using xml. The dyna action form bloats up with the struts-config.xml based definition.

b) There is no need to write action form class for the DynaActionForm and all the variables related to the action form class will be specified in the struts-config.xml
Where as we have to create Action form class with getter and setter methods which are to be populated from the form.

SOURCE : www.referjava.com

No comments: