dwinterfeldt 01/09/25 11:27:51 Modified: contrib/validator/docs index.html revision.html todolist.html Log: Updating to show changes made since the last time the documentation was updated. Revision Changes Path 1.2 +125 -119 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.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- index.html 2001/07/09 02:55:37 1.1 +++ index.html 2001/09/25 18:27:50 1.2 @@ -1,119 +1,125 @@ -<html><head> -<META HTTP-EQUIV="KEYWORDS" CONTENT="struts validation validator validate java JSP servlet"> -<META NAME="DESCRIPTION" CONTENT="Struts Validation Framework"> -<title>Struts Validator</title> -<LINK REL="STYLESHEET" TYPE="text/css" HREF="css/main_style.css"> -</head> -<body> - - <table border=0 cellspacing=5 cellpadding=6 width="100%"> - <tr> - <td colspan="2"> - <table border=0 cellpadding=4 cellspacing=0 width=100% bgcolor="0000AA"><tr><td> - <table border=0 cellpadding=1 cellspacing=0 width=100% bgcolor=FFFFFF><tr width=100%><td> - <font size=+3>Struts Validator</font> - <BR> - <font size=+1>Validation Framework for Struts</font> - </td></tr></table> - </td></tr></table> -</td> - </tr> - <tr valign="top"> - <td valign="top"> - <!-- Menu --> - <table cellpadding=0 cellspacing=0 border=0 width="40"> - <tr bgcolor=eeeeee><td> - <table cellpadding=3 cellspacing=1 border=0> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="index.html">Home</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="installation.html">Installation</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="overview.html">Overview</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="jsptags.html">JSP Tags</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="api">Javadoc</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="todolist.html">To Do List</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="revision.html">Revision Info</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="archive">Downloads</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="contact.html">Contact Information</a></b></font></td></tr> - </table> - </td></tr> - </table> - <!-- / Menu --> - </td> - <!-- Body --> - <td valign="top"> - <p>The Validation Framework was made to work with - <a href="http://jakarta.apache.org/struts">Struts</a>. It can perform basic - validations to check if a field is required, matches a regular expression, - email, credit card, and server side type checking and date validation. Different - validation rules can be defined for different locales. The framework has basic support for - user defined constants which can be used in some field attributes. The validation routines - are modifiable in the validation.xml file so custom validation routines can be created and added - to the framework. - </p> - <p> - I wanted to mention that any type of validation can be performed in a validation - method. There seems to be a conception in some e-mails that the framework is only based on regular - expressions. They can do a lot so they are used almost exclusively in the examples, but the type - form shows validating some java primitives using standard java methods like Integer.parseInt, - validating a range, validating a credit card number, and validating a date. - </p> - <p>The Struts Validator is going to be incorporated into Struts 1.1. I'm working on finalizing - any design and/or feature issues before this occurs.<BR> - Note: The version 0.5 release is the most stable release (using Struts 3/6/2001 build). - </p> - <p>Feedback on bugs and suggestions are welcome.<BR> - <a href="mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]</a> - </p> - <BR> - <p> - <font size=-1>Update 7/2/2001 (using Struts 1.0)</font><BR> - <ul> - <li>Only the fields that are different from the default FormSet need to be - added to the FormSet of another locale. A complete list of fields - will be generated for each locale based on the default FormSet. As - the complete list of fields is generated, the list will be built - with the fields that are the closest match for the locale of the FormSet. - If the language is 'fr' and country is 'CA', then if the field doesn't exist - under 'fr_CA' it will be looked for under 'fr' and then it will use the - default locale. If you are using a variable, replacement won't occur - until after the complete field list for each locale is generated. This - needs more testing, but seems functional. - </li> - <li>Changed all StrutsValidator methods (except validateRequired) to only - perform validation if there is something other than a space entered. - This way if you want to removed the depends="required" from a validator, - the user will receive an error message once once something is entered - in a field along with any fields that are still required. - </li> - <li>The required JavaScript function now also checks for select and radio fields.</li> - </ul> - </p> - - <BR><BR><BR> - <p><center> - <table align="center"> - <tr> - <td align="right" width=210>You are visitor number</td> - <td bgcolor="#ffffff" width=120> - <img src="http://home.earthlink.net/cgi-bin/counter.pl?zero"> - <!-- Started on 2/27/2001 --> - </td> - </tr> - </table> - </center></p> - </td> - <!-- / Body --> - </tr> - </table> - - -</body></html> - +<html><head> +<META HTTP-EQUIV="KEYWORDS" CONTENT="struts validation validator validate java JSP servlet"> +<META NAME="DESCRIPTION" CONTENT="Struts Validation Framework"> +<title>Struts Validator</title> +<LINK REL="STYLESHEET" TYPE="text/css" HREF="css/main_style.css"> +</head> +<body> + + <table border=0 cellspacing=5 cellpadding=6 width="100%"> + <tr> + <td colspan="2"> + <table border=0 cellpadding=4 cellspacing=0 width=100% bgcolor="0000AA"><tr><td> + <table border=0 cellpadding=1 cellspacing=0 width=100% bgcolor=FFFFFF><tr width=100%><td> + <font size=+3>Struts Validator</font> + <BR> + <font size=+1>Validation Framework for Struts</font> + </td></tr></table> + </td></tr></table> +</td> + </tr> + <tr valign="top"> + <td valign="top"> + <!-- Menu --> + <table cellpadding=0 cellspacing=0 border=0 width="40"> + <tr bgcolor=eeeeee><td> + <table cellpadding=3 cellspacing=1 border=0> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="index.html">Home</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="installation.html">Installation</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="overview.html">Overview</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="jsptags.html">JSP Tags</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="api">Javadoc</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="todolist.html">To Do List</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="revision.html">Revision Info</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="archive">Downloads</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="contact.html">Contact Information</a></b></font></td></tr> + </table> + </td></tr> + </table> + <!-- / Menu --> + </td> + <!-- Body --> + <td valign="top"> + <p>The Validation Framework was made to work with + <a href="http://jakarta.apache.org/struts">Struts</a> although it can be used to perform + validation on any JavaBean (by using the Validator class). It can perform basic + validations to check if a field is required, matches a regular expression, + email, credit card, and server side type checking and date validation. Different + validation rules can be defined for different locales. The framework has basic support for + user defined constants which can be used in some field attributes. The validation routines + are modifiable in the validation.xml file so custom validation routines can be created and added + to the framework. + </p> + <p> + I wanted to mention that any type of validation can be performed in a validation + method. There seems to be a conception in some e-mails that the framework is only based on regular + expressions. They can do a lot so they are used almost exclusively in the examples, but the type + form shows validating some java primitives using standard java methods like Integer.parseInt, + validating a range, validating a credit card number, and validating a date. + </p> + <p>The Struts Validator is going to be incorporated into Struts 1.1. I'm working on finalizing + any design and/or feature issues before this occurs.<BR> + 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> + </p> + <BR> + <p> + <font size=-1>Update 9/25/2001 (using Struts 9/25/2001 source)</font><BR> + <ul> + <li>Upgraded to commons packages for Bean Utils, Collections, and the Digester.</li> + <li>Modified build.xml and build.properties.</li> + <li>A jsFunctionName attribute was added to the validator element so you could specify + a function/object name to be used when the JavascriptValidatorTag generates the + dynamic JavaScript. Netscape seemed to assume validators like float were keywords. + If another function/object name was used, everything worked fine in Netscape. + </li> + <li>Basic indexed validation capablities have been added for use with 'indexed="true"' + capablilities of the html form tags.<br> + <br> + I haven't had time to add this to an example, but below is a sample usage.<br> + <br> + <logic:iterate id="listElement" name="registrationForm" property="listElementList" indexId="index"><br> + <html:textarea indexed="true" name="listElement" property="value" cols="60" rows="8"/><br><br> + </logic:iterate><br> + <br> + <field property="value"<br> + indexedProperty="listElement"<br> + indexedListProperty="listElementList"<br> + depends="required"><br> + <arg0 key="registrationForm.paragraph.displayname"/><br> + </field> + </li> + </ul> + </p> + + <BR><BR><BR> + <p><center> + <table align="center"> + <tr> + <td align="right" width=210>You are visitor number</td> + <td bgcolor="#ffffff" width=120> + <img src="http://home.earthlink.net/cgi-bin/counter.pl?zero"> + <!-- Started on 2/27/2001 --> + </td> + </tr> + </table> + </center></p> + </td> + <!-- / Body --> + </tr> + </table> + + +</body></html> + 1.2 +26 -1 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.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- revision.html 2001/07/09 02:55:37 1.1 +++ revision.html 2001/09/25 18:27:50 1.2 @@ -50,7 +50,32 @@ <!-- Body --> <td valign="top"> <H2>Revision Info</H2> - + <font size=-1>Update 9/25/2001 (using Struts 9/25/2001 source)</font><BR> + <ul> + <li>Upgraded to commons packages for Bean Utils, Collections, and the Digester.</li> + <li>Modified build.xml and build.properties.</li> + <li>A jsFunctionName attribute was added to the validator element so you could specify + a function/object name to be used when the JavascriptValidatorTag generates the + dynamic JavaScript. Netscape seemed to assume validators like float were keywords. + If another function/object name was used, everything worked fine in Netscape. + </li> + <li>Basic indexed validation capablities have been added for use with 'indexed="true"' + capablilities of the html form tags.<br> + <br> + I haven't had time to add this to an example, but below is a sample usage.<br> + <br> + <logic:iterate id="listElement" name="registrationForm" property="listElementList" indexId="index"><br> + <html:textarea indexed="true" name="listElement" property="value" cols="60" rows="8"/><br><br> + </logic:iterate><br> + <br> + <field property="value"<br> + indexedProperty="listElement"<br> + indexedListProperty="listElementList"<br> + depends="required"><br> + <arg0 key="registrationForm.paragraph.displayname"/><br> + </field> + </li> + </ul> <font size=-1>Update 7/2/2001 (using Struts 1.0)</font><BR> <ul> <li>Only the fields that are different from the default FormSet need to be 1.2 +80 -79 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.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- todolist.html 2001/07/09 02:55:37 1.1 +++ todolist.html 2001/09/25 18:27:50 1.2 @@ -1,79 +1,80 @@ -<html><head> -<META HTTP-EQUIV="KEYWORDS" CONTENT="struts validation validator validate java JSP servlet"> -<META NAME="DESCRIPTION" CONTENT="Struts Validation Framework"> -<title>Struts Validator</title> -<LINK REL="STYLESHEET" TYPE="text/css" HREF="css/main_style.css"> -</head> -<body> - - <table border=0 cellspacing=5 cellpadding=6 width="100%"> - <tr> - <td colspan="2"> - <table border=0 cellpadding=4 cellspacing=0 width=100% bgcolor="0000AA"><tr><td> - <table border=0 cellpadding=1 cellspacing=0 width=100% bgcolor=FFFFFF><tr width=100%><td> - <font size=+3>Struts Validator</font> - <BR> - <font size=+1>Validation Framework for Struts</font> - </td></tr></table> - </td></tr></table> -</td> - </tr> - <tr valign="top"> - <td valign="top"> - <!-- Menu --> - <table cellpadding=0 cellspacing=0 border=0 width="40"> - <tr bgcolor=eeeeee><td> - <table cellpadding=3 cellspacing=1 border=0> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="index.html">Home</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="installation.html">Installation</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="overview.html">Overview</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="jsptags.html">JSP Tags</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="api">Javadoc</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="todolist.html">To Do List</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="revision.html">Revision Info</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="archive">Downloads</a></b></font></td></tr> - <tr><td align="center" bgcolor=#FFFFFF><font size=-1> - <b><a href="contact.html">Contact Information</a></b></font></td></tr> - </table> - </td></tr> - </table> - <!-- / Menu --> - </td> - <!-- Body --> - <td valign="top"> - <H2>To Do List</H2> - <ul> - <li>Documentation (make pages on pluggable validators and webapps)</li> - <li>Work on sort for dependencies.</li> - <li>Work on the way the JavascriptValidatorTag generates the validation method. - Currently it does do a sort, but it always joins method based on an 'and' (&&). - </li> - <li>Validations for the rest of the primitives, basic java objects, and possibly sql types.</li> - <li>Performance. A way for the user to directly cache something in the ValidationResources. - Such as caching regular expression objects. - </li> - <li>Multiple Page Forms with Generic Actions need more work.</li> - <li>Role based validation (is there a large need?).</li> - <li>Make Blank WAR to jumpstart developement.</li> - <li>Change references of PropertyUtils when it is moved to Jakarta Commons.</li> - <li>Finish JavaScript i18n version for date validation.</li> - <li>Make more unit tests and move test source to src/test.</li> - <!-- <li>Class caching in the ValidatorAction is redundant according to a posting by Craig.</li> --> - <!-- <li>Re-check thread safety of ValidationResources</li> --> - </ul> - </td> - <!-- / Body --> - </tr> - </table> - - -</body></html> - +<html><head> +<META HTTP-EQUIV="KEYWORDS" CONTENT="struts validation validator validate java JSP servlet"> +<META NAME="DESCRIPTION" CONTENT="Struts Validation Framework"> +<title>Struts Validator</title> +<LINK REL="STYLESHEET" TYPE="text/css" HREF="css/main_style.css"> +</head> +<body> + + <table border=0 cellspacing=5 cellpadding=6 width="100%"> + <tr> + <td colspan="2"> + <table border=0 cellpadding=4 cellspacing=0 width=100% bgcolor="0000AA"><tr><td> + <table border=0 cellpadding=1 cellspacing=0 width=100% bgcolor=FFFFFF><tr width=100%><td> + <font size=+3>Struts Validator</font> + <BR> + <font size=+1>Validation Framework for Struts</font> + </td></tr></table> + </td></tr></table> +</td> + </tr> + <tr valign="top"> + <td valign="top"> + <!-- Menu --> + <table cellpadding=0 cellspacing=0 border=0 width="40"> + <tr bgcolor=eeeeee><td> + <table cellpadding=3 cellspacing=1 border=0> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="index.html">Home</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="installation.html">Installation</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="overview.html">Overview</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="jsptags.html">JSP Tags</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="api">Javadoc</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="todolist.html">To Do List</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="revision.html">Revision Info</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="archive">Downloads</a></b></font></td></tr> + <tr><td align="center" bgcolor=#FFFFFF><font size=-1> + <b><a href="contact.html">Contact Information</a></b></font></td></tr> + </table> + </td></tr> + </table> + <!-- / Menu --> + </td> + <!-- Body --> + <td valign="top"> + <H2>To Do List</H2> + <ul> + <li>Documentation (make pages on pluggable validators and webapps)</li> + <li>Work on sort for dependencies.</li> + <li>Work on the way the JavascriptValidatorTag generates the validation method. + Currently it does do a sort, but it always joins method based on an 'and' (&&). + </li> + <li>Default Validations basic java objects and possibly sql types.</li> + <li>Performance. A way for the user to directly cache something in the ValidationResources. + Such as caching regular expression objects. + </li> + <li>Multiple Page Forms with Generic Actions need more work.</li> + <li>Role based validation (is there a large need?).</li> + <li>Make Blank WAR to jumpstart developement.</li> + <li>Finish JavaScript i18n version for date validation.</li> + <li>Make more unit tests and move test source to src/test.</li> + <li>Make a min and max length validator.</li> + <li>Document ValidatorActionForm in the overview.</li> + <!-- <li>Class caching in the ValidatorAction is redundant since the class loader does this.</li> --> + <!-- <li>Re-check thread safety of ValidationResources</li> --> + </ul> + </td> + <!-- / Body --> + </tr> + </table> + + +</body></html> +