Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: converted to 1.6 markup

This is a basic 1,2,3 guide that anyone can expand upon when they have something useful to add:\

  • Wiki Markupget commons-validator.jar - go to \[http://jakarta.apache.org/ jakarta\] to download the latest version. \\
  • put it in your classpath - this is normally WEB-INF/lib/ along with the other jars such as struts.jar
  • create action forms to be validated - based on ValidatorForm, or just use DynaActionForms and don't worry about coding classes for them - all that's needed is the form config in struts-config.xml (see below)
  • edit your struts-config.xml:
    • put the validator plug-in xml into the plug-ins section:

...