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

Explain architecture of struts2?

574


Which tag is used to declare constants in struts xml?

462


What is dispatchaction?

623


What are action errors and error?

571


List some struts tag libraries?

549






What are the classes used as part of struts framework ?

513


When do I need “struts.jar” on my classpath?

527


What is struts and springs in java?

521


What's the purpose of execute method of action class?

523


How can we upload files in Struts2 application?

578


What is difference between spring and struts?

497


How exceptions are handled in struts application?

527


What is the purpose of @validations annotation?

559


What is the purpose of @createifnull annotation annotation?

607


Does Struts2 action and interceptors are thread safe?

596