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 are the two different types of validations that the validator framework supports?

607


Why are frameworks used?

629


Name some of the features of struts2?

663


Can you explain value stack?

620


What is the differences between struts1 and struts2?

607






What helpers in the form of jsp pages are provided in struts framework?

623


How does interceptor work in struts2?

605


What is the default suffix for struts2 action uri ?

637


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

643


Which tag is used to declare constants in struts xml?

562


Which class of struts is responsible to converts data types from string and vice versa?

770


What do you mean by actionform?

654


What is the role of action class?

654


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

624


What is the difference between requestaware and servletrequestaware interface?

666