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. No bean class is required for the DynaActionForm and we will declare the form beans as DynaActionForm type in struts-confing.xml. We will declare the properties and their type in the struts-config.xml

<form-bean name=”employeeForm”   type=”org.apache.struts.action.DynaActionForm”>
<form-property name=”name” type=”java.lang.String”/>
<form-property name=”age” type=”java.lang.String”/>


6 Responses

  1. Nice article

  2. its good

  3. The answer is perfect and suitable for answering in an interview.

  4. Nice Explanation!!!!!!!!!!!!!

  5. thank to giving nice Explanation..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: