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
What is apache struts framework?
What is Struts2?
What’s the difference between struts and turbine?
What are the struts2 error message keys that can come during file uploading process?
how to connect from struts to database through hibernet and where u can modify the class
What validate() and reset() method does ?
What are the life cycle methods of interceptor?
What is the purpose of @beforeresult?
What are action errors?
Where can I get a copy of struts?
What is the purpose of @result?
What is the purpose of @validations annotation?
What is the struts in java?
what is ACID test for fresh engineers??what is the pattern??
What is the difference between validation.xml and validator-rules.xml files in struts?