Struts Form Bean

Form Bean is part of struts presentation layer. Form Bean is container of data. Simply we can say that form bean is nothing but a java class which have mainly its properties and setter and getter methods. Form Bean contains the user's data.
Form Bean can be in three Scopes:
  • request
  • session
  • application
Form Bean objects can be initialized in two ways:
  1. With the client submitted data, here Request Processor will be done it automatically.
  2. With the data collected from DB, here we have to do explicitly
There are six type of Form Bean:-

  1.  ActionForm
  2. DynaActionForm
  3. ValidatorForm
  4. DynaVarlidatorForm
  5. ValidatorActionForm
  6. DynaValidatorActionForm

0 comments :

Post a Comment