Apache Maven 1.x has reached its end of life, and is no longer supported. For more information, see the announcement. Users are encouraged to migrate to the current version of Apache Maven.


strutsCall struts:validate-war

Ensure a war file containing a Struts application is valid.

The validator checks the folowing:

  1. It's a valid war file as per the J2EE War Validator
  2. The war file has a struts configuration, usually WEB-INF/struts-config.xml
  3. Form Beans defined by a <form-bean> tag have a type that is loadable from the war file and not the classpath. If the form bean has a className, that class too must be loaded from the war
  4. Actions defined by a <action> tag have several validations:
    1. the className attribute must be a class loadable from the war
    2. the name attribute, must match a <form-bean> name attribute.
    3. the path attribute must start with a forward slash, i.e. '/'
    4. the scope attribute must be one of request or sesssion
    5. the type attribute must be a class loadable from the war
    6. the unknown and validate attributes must be either true or false