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


Please Help Members By Posting Answers For Below Questions

What is apache struts vulnerability?

545


How to use dispatchaction?

579


What are the steps required for setting up validator framework in struts?

565


What configuration changes are required to use Tiles in Struts?

570


What is struts framework?

553






What is filter dispatcher in struts?

536


What configuration changes are required to use resource files in Struts?

573


What are struts in java?

506


What is role of action class?

563


What is the difference between forwardaction and includeaction?

535


Explain about the tag?

628


What is the purpose of @element annotation annotation?

600


What inbuilt themes are provided by struts2?

592


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

576


Can you explain struts.properties in struts2?

530