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
Give an example of validates method used to avoid errors.
Which class of struts is responsible to converts data types from string and vice versa?
What is the design role played by struts?
What is difference between struts1 and struts2?
What is the differences between struts1 and struts2?
How nested beans can be used in Struts applications?
What design patterns are used in struts?
What is spring hibernate and struts in java?
When should we use SwtichAction?
Why we use struts in java?
Explain how can we upload files in struts2 application?
What is the flow of requests in struts based applications?
What are the differences between http direct and http indirect?
How to display validation errors on jsp page?
What are the main classes which are used in struts application?