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

Answer Posted / prapanch

this is to tell you in an easily understandable
way.actuallyl in struts when you enter some data in jsp's
you will declare one action form which will act like a
javabean having settes and getters for all the fields in
the jsp. from the object of the action form you can later
retrieve the data enterd by the user.

but here dynaactionform is a smart way to escape coding all
the setters and getters.you can configure the struts-
configfile so that for each and every field in your jsp one
field property will be there in the struts config file.

it will be like this for example your form has username and
password then you need to configure your config file like

<form-beans>
<form-bean name="name of the form" path="fully qualified
name for the class of the form">
<form-property name="username" type="java.lang.String"/>
<form-property name="password" type="java.lang.String"/>
</form-bean>

</form-beans>

by writing this you can avoid writing your action form it
will be useful for you generally when the form fields are
more.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which technologies can be used at view layer in struts?

736


What are the features of struts 2?

620


What are the action classes in struts?

609


Why are struts tightly coupled?

674


How struts2 supports internationalization?

738






List some struts tag libraries?

641


What are the steps involved in creating a strut application?

600


List the important attribute and elements of action mapping under struts.

609


Difference between struts and spring? Or why use spring, if you are already using struts?

616


In how many ways duplicate form submission can occurs?

669


What are Struts2 core components?

650


How struts 2 validation works?

690


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

701


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

659


What is the apache struts vulnerability?

607