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
What is the difference between filters and interceptors ?
How many struts config file can be created in struts?
What is defeult result type?
Is struts compatible with other java technologies?
What are the conditions for actionform to work correctly?
Which class is the Front Controller in Struts2?
When should be opt for struts framework?
What are the Core classes of Struts Framework?
What are the steps of struts installation?
What is the difference between struts and spring?
What is the difference between session scope and request scope when saving formbean ?
What is struts in java with example?
Give the details of xml files used in validator framework?
What do you mean by the abstract package in struts2, and what is its utilization?
What’s the difference between struts and turbine? What’s the difference between struts and espresso?