Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the DynaActionForm? How we implement the
dynaactionform ? can u please tell me the way to implement?
in understandable way?

Answer Posted / penchala

In struts, every form control need to have one ActionForm
class property and getter/setter method for it.
DynaActionForm will replace the ActionForm with the simple
xml mappings so that the java form class can be eliminated
and thus helps in developing the application more quickly.
The advantages of using the DynaActionForm are as follows:-


1. No ActionForm is required.

2. Replace the property mapping with the simple xml file so
that if any property is to add and remove then there is no
need to compile the java class again.


The mapping is to be done in the struts-config.xml file in
the <form-bean> tag for all the form properties.

<form-bean name="inputForm"
type="org.apache.struts.action.DynaActionForm" >
<form-property name="name" type="java.lang.String"/>
<form-property name="email" type="java.lang.String" />
</form-bean>

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What’s the difference between struts and turbine?

1296


while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert

2597


Which servlet does the struts framework use?

1024


State an example of struts configuration file as an action parameter for action servlet.

1046


What is the purpose of @requiredstringvalidator?

996


Who makes the struts?

995


What’s the utilization of struts.xml configuration file?

980


Can we use struts and spring together?

1042


What is front controller in struts?

1037


In which method of action class the business logic is executed?

1029


What is the use of resourcebundle.properties file in Struts Validation framework?

1114


What is the difference between session scope and request scope when saving formbean ?

1032


What is struts-default package and what are it’s benefits?

1172


Which model components are supported by Struts?

1081


What does i18n interceptor?

1091