What are the Different types of FormBeans in Struts?
There are six types of FormBean classes are available in struts.
They are:
ValidatorForm,DynaValidatorForm classes are capable of performing both programatic and declarative(validator framework) from validations.But form validator-rules.properties will be configured based on logical name of FormBean class.
ValidatorActionForm,DynaValidatorActionForm classes are capable of performing both programatic and declarative form validations.But form validator rules must be configured in validations.xml based on action path and action class.
Reference Books:
They are:
- ActionForm
- DynaActionForm
- ValidatorForm
- DynaValidatorForm
- ValidatorActionForm
- DynaValidatorActionForm
ValidatorForm,DynaValidatorForm classes are capable of performing both programatic and declarative(validator framework) from validations.But form validator-rules.properties will be configured based on logical name of FormBean class.
ValidatorActionForm,DynaValidatorActionForm classes are capable of performing both programatic and declarative form validations.But form validator rules must be configured in validations.xml based on action path and action class.
Reference Books: