what is diffrence between Dynaactionform,actionform and
Dynavalidateform

Answer Posted / jane priscilla

All three are javaBean Class that can maintain the session
state for web application and the ActionForm object is
automatically populated on the server side with data
entered from a form on the client side. but an
--->ActionForm(DynaValidateForm) can have getters(),Setters
(),reset() and the validator() methods.

--->DynaActionForm should be given in Struts-cofig.xml as
follows
<form-beans>
<form-bean name="employeeForm"
type="org.apache.struts.validator.DynaValidatorForm"
<form-property name="dispatch" type="java.lang.String"/>
</form-bean>
</form-beans>

Is This Answer Correct ?    21 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which components are available using actioncontext map?

726


What types of validations are available in xml based validation in struts2?

556


Can we have multiple struts config files in a single web app?

503


What are the features of struts?

577


Are interceptors and filters different?

549






What are the loop holes of struts?

563


What is the purpose of @doublerangefieldvalidator?

616


Do I have to credit struts on my own website?

537


What is the difference between plain-validator and field-validator?

526


Give an example where struts tiles may be used?

560


What is the purpose of action tag in struts.xml?

564


What are the two scope types for formbeans?

613


Do you need an alignment after replacing struts?

526


What are action errors and error and what are the consequences they impose?

569


Can we handle exceptions in Struts programmatically?

519