what is diffrence between Dynaactionform,actionform and
Dynavalidateform

Answer Posted / labourer in an mnc

ActionForm
This class must be subclassed in order to be instantiated.
Subclasses should provide property getter and setter
methods for all of the bean properties they wish to expose,
plus override any of the public or protected methods for
which they wish to provide modified functionality.

DynaActionForm
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.

DynaValidatorForm
This class extends DynaActionForm and provides basic field
validation based on an XML file. The key passed into the
validator is the action element's 'name' attribute from the
struts-config.xml which should match the form element's
name attribute in the validation.xml.

Differences
ActionForm does not create getters and setters like we
cannot write <form-bean name="loginForm"
type="org.apache.struts.action.ActionForm"> in struts-
config.xml.

DynaActionForm cannot be used if we want validation in that
case DynaValidatorForm can be used.

Is This Answer Correct ?    5 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 espresso?

508


What do you mean by actionform?

585


What is the design role played by struts?

557


What is the purpose of @before annotation?

589


What is difference between lookupdispatchaction and dispatchaction?

633






How can we handle exceptions thrown by application in Struts2?

544


Do I have to credit struts on my own website?

537


What is s token?

541


How duplicate form submission can be controlled in struts?

650


What is lookupdispatchaction?

555


What is the difference between struts and spring?

527


Which model components are supported by Struts?

571


What is the purpose of @key?

584


What is the difference between shocks and struts?

503


What is actioninvocation in struts2?

588