From 4987be7f92ce5b8d0bb768184a542326ee089da1 Mon Sep 17 00:00:00 2001
From: dion
Date: Sun, 18 Jul 2004 14:07:38 +0000
Subject: [PATCH] Revamp docs
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115845 13f79535-47bb-0310-9956-ffa450edef68
---
struts/xdocs/futures.xml | 2 +-
struts/xdocs/goals.xml | 41 ++++++++++++-
struts/xdocs/index.xml | 35 +++--------
struts/xdocs/navigation.xml | 1 -
struts/xdocs/properties.xml | 117 ++----------------------------------
5 files changed, 55 insertions(+), 141 deletions(-)
diff --git a/struts/xdocs/futures.xml b/struts/xdocs/futures.xml
index 82da1be7..391cd995 100644
--- a/struts/xdocs/futures.xml
+++ b/struts/xdocs/futures.xml
@@ -32,7 +32,7 @@
- Validate forwards
- - Support Struts 1.1
+ - More Support for Struts 1.1
- Generate struts-config using xdoclet
- Generate form beans from validation.xml
diff --git a/struts/xdocs/goals.xml b/struts/xdocs/goals.xml
index a998bd9c..3f62867f 100644
--- a/struts/xdocs/goals.xml
+++ b/struts/xdocs/goals.xml
@@ -27,11 +27,48 @@
struts
- Ensure a war file containing a Struts application is valid
+ Call struts:validate-war
struts:validate-war
- Ensure a war file containing a Struts application is valid
+
+
+ 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
+
+
+
+
+
+