Enabling your action form to work with the Validator framework

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


  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 tab.
  3. In the Form Beans section, highlight MyContactUsForm.
  4. In the Form Bean Attributes section, click the Browse button next to the Type field. In the class selection dialog, type DynaValidatorForm. There are two occurences of the class name in this file. Select the one with the path Stores/WebContent/WEB-INF/lib/struts.jar.
  5. Save your changes.