what is diffrence between Dynaactionform,actionform and
Dynavalidateform
Answer Posted / madhukiran
ActionForm will populate the properties depending on the
respective JSP fields.In this we can specify the validate()
method (if required) for validations or else you can use
ActionErrors for validating..
DynaActionForm has to be defined in Struts-config.xml and
it may have many property fields. We can use this form for
many no.of JSPs.Single dynaActionForm can serve for many
number of JSPs.
DyanValidateForm is same as DynaActionForm but we no need
to specify explicitly for the Validations. If we define a
DynaActionForm as DynaValidateForm, then it will look up of
rthe validations.
One more is there DynaValidatorActionForm which will allow
you to specify the path variable of <action> tag in
Validator.xml where as in DynaValidateForm will take
formname.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
How do you create message resource?
Which tag is used to declare constants in struts xml?
Explain the necessity of empty tag?
What is the default location of result pages and how can we change it?
What is the purpose of @results?
In which method of action class the business logic is executed?
What is the purpose of @typeconversion annotation annotation?
What is the purpose of struct-config.xml in struct2?
What is the difference between shocks and struts?
Which class of struts is responsible to converts data types from string and vice versa?
Who makes the struts?
How nested beans can be used in Struts applications?
Is struts compatible with other java technologies?
How to combine the struts with velocity template?
What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?