what is is the use DynaActionForm?
Answers were Sorted based on User's Feedback
Answer / nishant
By Using Dyna action forms, we dont need to specify the
setter getter methods in the form bean. The attribute for
the form are specified in the xml file in the form bean tag
itself. In the action class, the form is typecast into the
dynaactionform and the properties can be used in the old
way. This eliminates the addition work to modify the setter
and getter for the attributes when the form properties are
being changed.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / rosaiah
no need to write seperate form bean class here.directly we enter attributes in struts-config.xml file.objects are decreased .so burden on server decreased as well as if u changes any attributes no need to compile classes.just change in struts-config.xml file is changed and restart the server.
it is very good approach to java programmers......
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / srikanth addani
The main advantage of using DynaActionForm we need to take setters and getters.just we have to override execute() which returns ActionErrors.In this execute() we can perform validations.setters and getters should be configured in struts-config file by using a tag called
<form-beans name="">
<form-bean name="" property=""/>
</form-beans>
Thanks&Regards
Srikanth addani
85890555214.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by actionmapping?
What is the purpose of @before annotation?
what happen if the private constructor is written in a claass
How can we handle exceptions thrown by application in Struts2?
Can we write Structs application without using Action Class directly or indirectly(extends Action class)
What are action errors?
How tag libraries are defined in Struts?
I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible
how canu done chechin and check out of u r project using with sample examples?
How can we display all validation errors to user on jsp page?
What is ValueStack and OGNL?
Struts follows which design patterns?