Pages Navigation Menu

Coding is much easier than you think

Different types of form bean in struts 1.X

ActionForm Action form for action class.

DynaActionForm – No form bean is created. No Validations are done here. Form bean properties are specified in struts-config.xml file

ValidatorForm Uses validation framework for validating the form bean.

DynaValidatorForm – Similar to the ValidatorForm but form bean is not created and form bean properties are specified in the struts-config.xml file. Validations here are done according to the to the form bean name.

ValidatorActionForm – Validations are done according to the action class name and not according to the form bean name as in ValidatorForm. Form bean is still created.

DynaValidatorActionForm –> Similar to the ValidatorActionForm but form bean is not created and form bean properties are specified in the struts-config.xml file. Validations are done according to the Action class name.