Wednesday, April 1, 2009

What is difference between ActionForm and DynaActionForm

If the ActionForm is used, then user himself has to write the setters and getters when ever he adds a control.

The same process is repeated again and again when user creates a view.

DynaActionForm eliminates this burden and creates the form bean itself.

This way user dont have to write setters and getters.

DynaActionForm is specialized subclass of ActionForm that allows the creation of form beans with dynamic sets of properties, without requiring the developer to create a Java class for each type of form bean. DynaActionForm eliminates the need of FormBean class and now the form bean definition can be written into the struts-config.xml file. So, it makes the FormBean declarative and this helps the programmer to reduce the development time.

More Details

No comments:

Post a Comment

Followers