dion 4987be7f92 Revamp docs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115845 13f79535-47bb-0310-9956-ffa450edef68
2004-07-18 14:07:38 +00:00

75 lines
2.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<document>
<properties>
<title>Maven struts Plug-in Goals</title>
<author email="dion@apache.org">dIon Gillard</author>
</properties>
<body>
<goals>
<goal>
<name>struts</name>
<description>Call <code>struts:validate-war</code></description>
</goal>
<goal>
<name>struts:validate-war</name>
<description>
<p>
Ensure a war file containing a Struts application is valid.
</p>
<p>
The validator checks the folowing:
<ol>
<li>It's a valid war file as per the <a href="../j2ee/index.html">
J2EE War Validator</a>
</li>
<li>The war file has a struts configuration, usually
<code>WEB-INF/struts-config.xml</code>
</li>
<li>
Form Beans defined by a <code>&lt;form-bean&gt;</code> tag
have a <code>type</code> that is loadable from the war file
and <strong>not</strong> the classpath. If the form bean has
a <code>className</code>, that class too must be loaded from
the war
</li>
<li>Actions defined by a <code>&lt;action&gt;</code> tag have
several validations:
<ol>
<li>the <code>className</code> attribute must be a class loadable from the war</li>
<li>the <code>name</code> attribute, must match a <code>&lt;form-bean&gt; name</code> attribute.</li>
<li>the <code>path</code> attribute must start with a forward slash, i.e. '/'</li>
<li>the <code>scope</code> attribute must be one of <code>request</code> or <code>sesssion</code></li>
<li>the <code>type</code> attribute must be a class loadable from the war</li>
<li>
the <code>unknown</code> and <code>validate</code>
attributes must be either <code>true</code> or <code>
false</code>
</li>
</ol>
</li>
</ol>
</p>
</description>
</goal>
</goals>
</body>
</document>