struts:validate-war |
Ensure a war file containing a Struts application is valid.
The validator checks the folowing:
- It's a valid war file as per the
J2EE War Validator
- The war file has a struts configuration, usually
WEB-INF/struts-config.xml
-
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
- Actions defined by a
<action> tag have
several validations:
- the
className attribute must be a class loadable from the war
- the
name attribute, must match a <form-bean> name attribute.
- the
path attribute must start with a forward slash, i.e. '/'
- the
scope attribute must be one of request or sesssion
- the
type attribute must be a class loadable from the war
-
the
unknown and validate
attributes must be either true or
false
|