Tutorials > Program model > Use Struts tags, action forms, and validation

< Previous | Next >


Enable the action form to work with the Validator framework

In this step, we will change the implementation class of the action form from DynaActionForm to its subclass, DynaValidatorForm, specifically designed to work with the Validator framework.


Procedure

  1. The struts-config-ext.xml file should still be open for editing in the Struts Configuration File editor.

  2. Switch to the Form Beans page of the editor.

  3. In the Form Beans section, highlight MyContactUsForm.

  4. In the Form Bean Attributes section, click the Browse button next to the Type field and select DynaValidatorForm.

    There are two occurrences of this class name in this file.

  5. Save the changes.

< Previous | Next >


+

Search Tips   |   Advanced Search