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 diffrence between Dynaactionform,actionform and
Dynavalidateform

Answer Posted / mohd. irfan khan

All three are javaBean Class that can maintain the session
state for web application. The ActionForm object is
automatically populated on the server side with data
entered from a form on the client side.
An ActionForm/DynaValidateForm can have getter(),Setter(),
reset() and the validate() methods that can be defined in
your actionForm or in Action class itself. If any changes
are made to the properties, code need to be recompiled.

Her comes the DynaActionForm to rescue. It allows
properites to be specified in Struts-cofig.xml file there
by avoiding the recompilation of the code.Also there is no
need to have a Form Bean for every page that had getter and
setter method for each of the field on the page.

This is how it can be declared in struts config file:
<form-beans>
<form-bean name="employeeForm"
type="org.apache.struts.action.DynaActionForm">
<form-property name="fname" type="java.lang.String"/>
</form-bean>
</form-beans>

Is This Answer Correct ?    25 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the important attribute and elements of action mapping under struts.

986


How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?

2965


What is difference between actionform and dynaactionform?

1038


What is difference between lookupdispatchaction and dispatchaction?

1117


Mark the differences between html tags and strut specific html tags.

971


Can explain about the validations and in your project where did u used the validations?

7666


What is apache struts used for?

921


What is the purpose of @doublerangefieldvalidator annotation?

1028


What are the various struts tag libraries?

937


Why was reload removed from struts (since 1.1)?

980


Explain the core end goal while using java struts?

938


Explain the life cycle of a request in struct2 application?

906


What do struts do?

967


What is Custom Type Converter in Struts2?

1098


What is the purpose of @emailvalidator?

979