dwinterfeldt 02/01/14 19:55:34
Modified: contrib/validator/docs index.html installation.html
jsptags.html overview.html revision.html
todolist.html
Log:
Updated docs to reflect package name changes and Commons Validator dependencies.
Revision Changes Path
1.4 +7 -18 jakarta-struts/contrib/validator/docs/index.html
Index: index.html
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/docs/index.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- index.html 19 Oct 2001 05:06:30 -0000 1.3
+++ index.html 15 Jan 2002 03:55:34 -0000 1.4
@@ -71,28 +71,17 @@
Note: The 7/2/2001 release is the last release
build with Struts 1.0.
</p>
<p>Feedback on bugs and suggestions are welcome.<BR>
- <a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>
+ <a
href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a>
</p>
<BR>
<p>
- <font size=-1>Update 10/18/2001 (using Struts 10/18/2001
source)</font><BR>
+ <font size=-1>Update 1/13/2002</font><BR>
<ul>
- <li>The last change that added indexed properties broke all locales
except for
- the default locale. The Field wasn't processed yet when the
locale field
- genration occurred and was returning a null key value.
- </li>
- <li>Added a check so JavascriptValidatorTag won't generate indexed
properties.</li>
- <li>Changed Javascript to validate for a type of 'select-one'
instead of 'select'.
- Javascript returns 'select-one' for a field's type value.
- </li>
- <li>Added min and max functions.</li>
- <li>Removed code from Validator retrieving the value to be
validated. It wasn't being used and
- this way as long as you specify a unique name for a field a
custom validator that isn't specifically
- tied to a field won't generate an error in the logs.
- </li>
- <li>The web apps were changed to use html:messages and
logic:messagesPresent
- for error messages.
- </li>
+ <li>Upgraded to use Commons Validator
(http://jakarta.apache.org/commons).</li>
+ <li>Packages changed to fall under
org.apache.struts.validator.</li>
+ <li>Documentation updated</li>
+ <li>Custom JSP Tags except for JavascriptValidatorTag have been
removed.</li>
+ <li>GenericAction class and JDBC example have been removed.</li>
</ul>
</p>
1.3 +2 -2 jakarta-struts/contrib/validator/docs/installation.html
Index: installation.html
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/docs/installation.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- installation.html 22 Oct 2001 03:43:56 -0000 1.2
+++ installation.html 15 Jan 2002 03:55:34 -0000 1.3
@@ -57,7 +57,7 @@
<!-- Validator Initialization Servlet Configuration -->
<BR>
<servlet>
<BR>
<servlet-name>validator</servlet-name>
<BR>
-
<servlet-class>com.wintecinc.struts.action.ValidatorServlet</servlet-class>
<BR>
+
<servlet-class>org.apache.struts.validator.action.ValidatorServlet</servlet-class>
<BR>
<init-param>
<BR>
<param-name>config</param-name>
<BR>
<param-value>/WEB-INF/validation.xml</param-value>
<BR>
@@ -83,7 +83,7 @@
<p>Copy the validators that you want to use from the validation.xml file
in /web/example/WEB-INF
or make your own.
</p>
- <p>Then extend com.wintecinc.struts.action.ValidatorForm instead of
+ <p>Then extend org.apache.struts.validator.action.ValidatorForm instead
of
org.apache.struts.action.ActionForm.
</p>
</td>
1.3 +0 -86 jakarta-struts/contrib/validator/docs/jsptags.html
Index: jsptags.html
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/docs/jsptags.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- jsptags.html 22 Oct 2001 03:43:56 -0000 1.2
+++ jsptags.html 15 Jan 2002 03:55:34 -0000 1.3
@@ -148,92 +148,6 @@
</p>
<br>
-
- <H4>Errors Tag
-
- <i><font size="-1">(deprecated - see html:messages in Struts Tag
Library)</font></i>
- </H4>
- <p>
- This should have all the functionality of the Struts html:errors tag, but
it iterates through the
- errors instead.
- <br>
- The header and footer are optional.<br>
- <validator:errors id="error" header="errors.header"
footer="errors.footer"><br>
- <li><bean:write
name="error"/></li><br>
- </validator:errors><br>
- <br>OR<br><br>
- <validator:errors id="error" property="firstName"
header="errors.header" footer="errors.footer"><br>
- <li><bean:write
name="error"/></li><br>
- </validator:errors><br>
- </p>
-
- <br>
-
- <H4>Errors Exist Tag
-
- <i><font size="-1">(deprecated - see logic:messagesPresent in
Struts Tag Library)</font></i>
- </H4>
- <p>
- A simple logic tag that checks for an object in the request attribute
under the default or specified error key.
- If there is an object, then the body of the tag is evaluated.
- <br>
- <validator:errorsExist><br>
- <bean:message
key="errors.header"/><br>
- <ul><br>
- <validator:errors
id="error"><br>
-
<li><bean:write name="error"/></li><br>
- </validator:errors><br>
- </ul><hr><br>
- </validator:errorsExist><br>
- <br>OR<br><br>
- Specify the request attribute key the error message is stored in.<br>
- <validator:errorsExist
name="com.wintecinc.example.ERRORS_KEY"><br>
- <bean:message
key="errors.header"/><br>
- <ul><br>
- <validator:errors id="error"
name="com.wintecinc.example.ERRORS_KEY"><br>
-
<li><bean:write name="error"/></li><br>
- </validator:errors><br>
- </ul><hr><br>
- </validator:errorsExist><br>
- </p>
-
- <br>
-
- <H4>Messages Tag
-
- <i><font size="-1">(deprecated - see html:messages in Struts Tag
Library)</font></i>
- </H4>
- <p>
- This is similiar to the errors tag, but it is just for general messages.
For instance you may want to send a
- general message that a certain number of records have been deleted, but
you don't want it to come up under the
- formatting you have specified for the errors tag.
- <br>
- <validator:messages id="message"> <br>
- <li><bean:write
name="message"/></li> <br>
- </validator:messages> <br>
- </p>
- <p>
- <font size="-1"><i>See com.wintecinc.struts.action.ActionMessages and
com.wintecinc.struts.action.ActionMessage.</i></font>
- </p>
-
- <br>
-
- <H4>Messages Exist Tag
-
- <i><font size="-1">(deprecated - see logic:messagesPresent in
Struts Tag Library)</font></i>
- </H4>
- <p>
- A simple logic tag that checks for an object in the request attribute
under the default or specified message key.
- If there is an object, then the body of the tag is evaluated.
- <br>
- <validator:messagesExist> <br>
- <ul> <br>
- <validator:messages
id="message"> <br>
-
<li><bean:write name="message"/></li> <br>
- </validator:messages> <br>
- </ul><hr> <br>
- </validator:messagesExist> <br>
- </p>
<br><br><br>
</td>
<!-- / Body -->
1.3 +8 -8 jakarta-struts/contrib/validator/docs/overview.html
Index: overview.html
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/docs/overview.html,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- overview.html 22 Oct 2001 03:43:56 -0000 1.2
+++ overview.html 15 Jan 2002 03:55:34 -0000 1.3
@@ -76,7 +76,7 @@
<H3><a name="setup">Setup</a></H3>
<p>In Struts once you have defined the ValidatorServlet in the web.xml so
it can
load your ValidatorResources you just have to extend
- com.wintecinc.struts.action.ValidatorForm instead of
+ org.apache.struts.validator.action.ValidatorForm instead of
org.apache.struts.action.ActionForm. Then when the validate method is
called
the action's name attribute from the struts-config.xml is used to load
the
validations for the current form. So the form element's name
attribute in
@@ -226,12 +226,12 @@
<p>Example Validator Configuration from validation.xml.<br>
<validator name="required"<br>
-
classname="com.wintecinc.struts.validation.Validator"<br>
+
classname="org.apache.struts.validator.util.StrutsValidatorUtil"<br>
method="validateRequired"<br>
msg="errors.required"/><br>
<br>
<validator name="mask"<br>
-
classname="com.wintecinc.struts.validation.Validator"<br>
+
classname="org.apache.struts.validator.util.StrutsValidatorUtil"<br>
method="validateMask"<br>
depends="required"<br>
msg="errors.invalid"/><br>
@@ -239,16 +239,16 @@
<H3><a name="creatingValidators">Creating Pluggable Validators</a></H3>
<p>The ValidatorAction method needs to have the following signature. See
the
- com.wintecinc.struts.validation.StrutsValidator class for examples.<br>
+ org.apache.struts.validator.util.StrutsValidator class for
examples.<br>
<br>
(java.lang.Object, <br>
- com.wintecinc.struts.validation.ValidatorAction,
com.wintecinc.struts.validation.Field, <br>
+ org.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field, <br>
org.apache.struts.action.ActionErrors, , <br>
javax.servlet.http.HttpServletRequest,
javax.servlet.ServletContext)<br>
<table>
<tr><td><b>java.lang.Object</b></td><td>Bean validation is being
performed on.</td></tr>
-
<tr><td><b>com.wintecinc.struts.validation.ValidatorAction</b></td><td>The current
ValidatorAction being performed.</td></tr>
- <tr><td><b>com.wintecinc.struts.validation.Field</b></td><td>Field object
being validated.</td></tr>
+ <tr><td><b>org.apache.commons.validator.ValidatorAction</b></td><td>The
current ValidatorAction being performed.</td></tr>
+ <tr><td><b>org.apache.commons.validator.Field</b></td><td>Field object
being validated.</td></tr>
<tr><td><b>org.apache.struts.action.ActionErrors</b></td><td>The errors
objects to add an ActionError to if the validation fails.</td></tr>
<tr><td><b>javax.servlet.http.HttpServletRequest</b></td><td>Current
request object.</td></tr>
<tr><td><b>javax.servlet.ServletContext</b></td><td>The application's
ServletContext.</td></tr>
@@ -322,7 +322,7 @@
<global> <br>
<validator name="capLetter"<br>
classname="com.mysite.Validator"<br>
-
methodParams="java.lang.Object,com.wintecinc.struts.validation.Field,java.util.List"<br>
+
methodParams="java.lang.Object,org.apache.commons.validator.Field,java.util.List"<br>
method="isCapLetter"<br>
msg="Letter
is not in upper case."/><br>
</global> <br>
1.5 +8 -0 jakarta-struts/contrib/validator/docs/revision.html
Index: revision.html
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/docs/revision.html,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- revision.html 19 Oct 2001 05:06:30 -0000 1.4
+++ revision.html 15 Jan 2002 03:55:34 -0000 1.5
@@ -50,6 +50,14 @@
<!-- Body -->
<td valign="top">
<H2>Revision Info</H2>
+ <font size=-1>Update 1/13/2002</font><BR>
+ <ul>
+ <li>Upgraded to use Commons Validator
(http://jakarta.apache.org/commons).</li>
+ <li>Packages changed to fall under org.apache.struts.validator.</li>
+ <li>Documentation updated</li>
+ <li>Custom JSP Tags except for JavascriptValidatorTag have been
removed.</li>
+ <li>GenericAction class and JDBC example have been removed.</li>
+ </ul>
<font size=-1>Update 10/18/2001 (using Struts 10/18/2001 source)</font><BR>
<ul>
<li>The last change that added indexed properties broke all locales
except for
1.4 +1 -0 jakarta-struts/contrib/validator/docs/todolist.html
Index: todolist.html
===================================================================
RCS file: /home/cvs/jakarta-struts/contrib/validator/docs/todolist.html,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- todolist.html 19 Oct 2001 05:06:30 -0000 1.3
+++ todolist.html 15 Jan 2002 03:55:34 -0000 1.4
@@ -66,6 +66,7 @@
<li>Finish JavaScript i18n version for date validation.</li>
<li>Make more unit tests and move test source to src/test.</li>
<li>Document ValidatorActionForm in the overview.</li>
+ <li>Have other types of Exceptions thrown from the Validator
class.</li>
<li>Have a way for indexed properties to work with
JavascriptValidatorTag.</li>
<!-- <li>Class caching in the ValidatorAction is redundant since the
class loader does this.</li> -->
<!-- <li>Re-check thread safety of ValidationResources</li> -->
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>