Extending the ActionForm Class
Here is the LoginForm
class.
- When framework receives a request, the ActionForm for the request
is looked up in the mappings, and a form is either created or reused
- This form has accessors and mutators for the customer access number and
pin number
- Framework uses accessors and mutators to populate the form fields from
the request object
- Overrides two methods that are called by the framework:
- reset(): called before populating the form
- validate(): called after populating the form, and returns
any validation errors