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

In which order struts framework searches for a message bundle?

562


Does Struts2 action and interceptors are thread safe?

610


What is role of action class?

563


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

567


How does interceptor work in struts2?

512






How tag libraries are defined in Struts?

576


Can explain about the validations and in your project where did u used the validations?

6413


What do you mean by inner class and anonymous class?

597


How interceptor works in struts 2?

596


Explain the life cycle of a request in struct2 application?

494


Which tag is used to declare constants in struts xml?

476


What is the default suffix for struts2 action uri ?

552


Explain about the future of struts?

537


Name the different types of actions found in struts.

560


What is the purpose of @result?

585