What is the DynaActionForm? How we implement the
dynaactionform ? can u please tell me the way to implement?
in understandable way?

Answer Posted / penchala

In struts, every form control need to have one ActionForm
class property and getter/setter method for it.
DynaActionForm will replace the ActionForm with the simple
xml mappings so that the java form class can be eliminated
and thus helps in developing the application more quickly.
The advantages of using the DynaActionForm are as follows:-


1. No ActionForm is required.

2. Replace the property mapping with the simple xml file so
that if any property is to add and remove then there is no
need to compile the java class again.


The mapping is to be done in the struts-config.xml file in
the <form-bean> tag for all the form properties.

<form-bean name="inputForm"
type="org.apache.struts.action.DynaActionForm" >
<form-property name="name" type="java.lang.String"/>
<form-property name="email" type="java.lang.String" />
</form-bean>

Is This Answer Correct ?    19 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are struts still used?

522


What types of validations are available in xml based validation in struts2?

561


How do u provide security to ur project?(Banking domain project)

4454


What is the struts in java?

516


How struts2 supports internationalization?

662






What steps are required to for an application migration from Struts1 to Struts2?

615


What are the pros of struts 2?

565


What is spring and struts in java?

527


Explain integrate log4j in struts2 application?

577


How does interceptor work in struts2?

515


Can you explain the directory structure for a struts folder in brief ?

530


Define struts?

635


What is actionform in struts?

495


Do you need an alignment after replacing struts?

530


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

574