| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> |
| <!--NewPage--> |
| <HTML> |
| <HEAD> |
| <!-- Generated by javadoc on Fri Aug 22 03:43:58 EDT 2003 --> |
| <TITLE> |
| StrutsValidator (Apache Struts API Documentation) |
| </TITLE> |
| <META NAME="keywords" CONTENT="org.apache.struts.util.StrutsValidator,StrutsValidator class"> |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
| </HEAD> |
| <SCRIPT> |
| function asd() |
| { |
| parent.document.title="StrutsValidator (Apache Struts API Documentation)"; |
| } |
| </SCRIPT> |
| <BODY BGCOLOR="white" onload="asd();"> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_top"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_top_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StrutsValidator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/util/ServletContextWriter.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/StrutsValidatorUtil.html"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
| <A HREF="StrutsValidator.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <H2> |
| <FONT SIZE="-1"> |
| org.apache.struts.util</FONT> |
| <BR> |
| Class StrutsValidator</H2> |
| <PRE> |
| java.lang.Object |
| | |
| +--<B>org.apache.struts.util.StrutsValidator</B> |
| </PRE> |
| <DL> |
| <DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD> |
| </DL> |
| <HR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html"><CODE>FieldChecks</CODE></A></I> |
| <P> |
| <DL> |
| <DT>public class <B>StrutsValidator</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL> |
| |
| <P> |
| <p> |
| |
| This class contains the default validations that are used in the validator-rules.xml |
| file.</p> |
| |
| In general passin in a null or blank will return a null Object or a false |
| boolean. However, nulls and blanks do not result in an error being added to the |
| errors. |
| <P> |
| |
| <P> |
| <DL> |
| <DT><B>Since:</B></DT> |
| <DD>Struts 1.1</DD> |
| <DT><B>Author:</B></DT> |
| <DD>David Winterfeldt, James Turner</DD> |
| <DT><B>See Also:</B><DD><A HREF="../../../../serialized-form.html" TARGET="org.apache.struts.util.StrutsValidator">Serialized Form</A></DL> |
| <HR> |
| |
| <P> |
| <!-- ======== NESTED CLASS SUMMARY ======== --> |
| |
| |
| <!-- =========== FIELD SUMMARY =========== --> |
| |
| <A NAME="field_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Field Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#FIELD_TEST_EQUAL">FIELD_TEST_EQUAL</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#FIELD_TEST_NOTNULL">FIELD_TEST_NOTNULL</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.String</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#FIELD_TEST_NULL">FIELD_TEST_NULL</A></B></CODE> |
| |
| <BR> |
| <B>Deprecated.</B> Commons Logging instance.</TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
| |
| <A NAME="constructor_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Constructor Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#StrutsValidator()">StrutsValidator</A></B>()</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> </TD> |
| </TR> |
| </TABLE> |
| |
| <!-- ========== METHOD SUMMARY =========== --> |
| |
| <A NAME="method_summary"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=2><FONT SIZE="+2"> |
| <B>Method Summary</B></FONT></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Byte</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateByte(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateByte</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateByte(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateByte(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateCreditCard(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateCreditCard</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateCreditCard(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateCreditCard(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A> |
| |
| Translated to Java by Ted Husted (<a href="mailto:husted@apache.org">husted@apache.org |
| </a>).<br> |
| Reference Sean M. Burke's script at http://www.ling.nwu.edu/~sburke/pub/luhn_lib.pl |
| </p></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.Date</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateDate(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateDate</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateDate(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateDate(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Double</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateDouble(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateDouble</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateDouble(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateDouble(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateEmail(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateEmail</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateEmail(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateEmail(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A> |
| |
| Based on a script by Sandeep V. Tamhankar (stamhankar@hotmail.com), http://javascript.internet.com |
| </p></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Float</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateFloat(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateFloat</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateFloat(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateFloat(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Integer</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateInteger(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateInteger</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateInteger(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateInteger(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Long</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateLong(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateLong</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateLong(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateLong(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateMask(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateMask</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateMask(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateMask(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateMaxLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateMaxLength</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateMaxLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateMaxLength(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateMinLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateMinLength</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateMinLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateMinLength(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateRange(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateRange</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateIntRange(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateIntRange(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static boolean</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateRequired</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateRequired(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.lang.Short</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../org/apache/struts/util/StrutsValidator.html#validateShort(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)">validateShort</A></B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</CODE> |
| |
| <BR> |
| <B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateShort(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateShort(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I></TD> |
| </TR> |
| </TABLE> |
| <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
| <TD><B>Methods inherited from class java.lang.Object</B></TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
| </TR> |
| </TABLE> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Field Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="FIELD_TEST_NULL"><!-- --></A><H3> |
| FIELD_TEST_NULL</H3> |
| <PRE> |
| public static final java.lang.String <B>FIELD_TEST_NULL</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DD>Commons Logging instance. |
| <P> |
| <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.struts.util.StrutsValidator.FIELD_TEST_NULL">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="FIELD_TEST_NOTNULL"><!-- --></A><H3> |
| FIELD_TEST_NOTNULL</H3> |
| <PRE> |
| public static final java.lang.String <B>FIELD_TEST_NOTNULL</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.struts.util.StrutsValidator.FIELD_TEST_NOTNULL">Constant Field Values</A></DL> |
| </DL> |
| <HR> |
| |
| <A NAME="FIELD_TEST_EQUAL"><!-- --></A><H3> |
| FIELD_TEST_EQUAL</H3> |
| <PRE> |
| public static final java.lang.String <B>FIELD_TEST_EQUAL</B></PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <DL> |
| <DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.struts.util.StrutsValidator.FIELD_TEST_EQUAL">Constant Field Values</A></DL> |
| </DL> |
| |
| <!-- ========= CONSTRUCTOR DETAIL ======== --> |
| |
| <A NAME="constructor_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Constructor Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="StrutsValidator()"><!-- --></A><H3> |
| StrutsValidator</H3> |
| <PRE> |
| public <B>StrutsValidator</B>()</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> </DL> |
| |
| <!-- ============ METHOD DETAIL ========== --> |
| |
| <A NAME="method_detail"><!-- --></A> |
| <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"> |
| <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
| <TD COLSPAN=1><FONT SIZE="+2"> |
| <B>Method Detail</B></FONT></TD> |
| </TR> |
| </TABLE> |
| |
| <A NAME="validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateRequired</H3> |
| <PRE> |
| public static boolean <B>validateRequired</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateRequired(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateRequired(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field isn't null and length of the field is greater than zero |
| not including whitespace.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>True if meets stated requirements, False otherwise</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateMask(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateMask</H3> |
| <PRE> |
| public static boolean <B>validateMask</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateMask(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateMask(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field matches the regular expression in the field's mask attribute. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>True if field matches mask, false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateByte(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateByte</H3> |
| <PRE> |
| public static java.lang.Byte <B>validateByte</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateByte(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateByte(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field can safely be converted to a byte primitive.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>A Byte if valid, a null otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateShort(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateShort</H3> |
| <PRE> |
| public static java.lang.Short <B>validateShort</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateShort(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateShort(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field can safely be converted to a short primitive.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>A Short if valid, otherwise a null.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateInteger(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateInteger</H3> |
| <PRE> |
| public static java.lang.Integer <B>validateInteger</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateInteger(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateInteger(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field can safely be converted to an int primitive.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>An Integer if valid, a null otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateLong(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateLong</H3> |
| <PRE> |
| public static java.lang.Long <B>validateLong</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateLong(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateLong(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field can safely be converted to a long primitive.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>A Long if valid, a null otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateFloat(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateFloat</H3> |
| <PRE> |
| public static java.lang.Float <B>validateFloat</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateFloat(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateFloat(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field can safely be converted to a float primitive.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>A Float if valid, a null otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateDouble(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateDouble</H3> |
| <PRE> |
| public static java.lang.Double <B>validateDouble</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateDouble(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateDouble(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field can safely be converted to a double primitive.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>A Double if valid, a null otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateDate(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateDate</H3> |
| <PRE> |
| public static java.util.Date <B>validateDate</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateDate(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateDate(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field is a valid date. If the field has a datePattern variable, |
| that will be used to format <code>java.text.SimpleDateFormat</code>. If the |
| field has a datePatternStrict variable, that will be used to format <code>java.text.SimpleDateFormat</code> |
| and the length will be checked so '2/12/1999' will not pass validation with |
| the format 'MM/dd/yyyy' because the month isn't two digits. If no datePattern |
| variable is specified, then the field gets the DateFormat.SHORT format for |
| the locale. The setLenient method is set to <code>false</code> for all variations. |
| </p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>A Date if valid, a null if blank or invalid.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateRange(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateRange</H3> |
| <PRE> |
| public static boolean <B>validateRange</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateIntRange(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateIntRange(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if a fields value is within a range (min & max specified in the |
| vars attribute).</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>True if in range, false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateCreditCard(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateCreditCard</H3> |
| <PRE> |
| public static java.lang.Long <B>validateCreditCard</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateCreditCard(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateCreditCard(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A> |
| |
| Translated to Java by Ted Husted (<a href="mailto:husted@apache.org">husted@apache.org |
| </a>).<br> |
| Reference Sean M. Burke's script at http://www.ling.nwu.edu/~sburke/pub/luhn_lib.pl |
| </p></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field is a valid credit card number.</p> <p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>The credit card as a Long, a null if invalid, blank, or null.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateEmail(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateEmail</H3> |
| <PRE> |
| public static boolean <B>validateEmail</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateEmail(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateEmail(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A> |
| |
| Based on a script by Sandeep V. Tamhankar (stamhankar@hotmail.com), http://javascript.internet.com |
| </p></I> |
| <P> |
| <DD><p> |
| |
| Checks if a field has a valid e-mail address.</p> <p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>True if valid, false otherwise.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateMaxLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateMaxLength</H3> |
| <PRE> |
| public static boolean <B>validateMaxLength</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateMaxLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateMaxLength(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field's length is less than or equal to the maximum value. |
| A <code>Null</code> will be considered an error.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>True if stated conditions met.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="validateMinLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3> |
| validateMinLength</H3> |
| <PRE> |
| public static boolean <B>validateMinLength</B>(java.lang.Object bean, |
| org.apache.commons.validator.ValidatorAction va, |
| org.apache.commons.validator.Field field, |
| <A HREF="../../../../org/apache/struts/action/ActionErrors.html">ActionErrors</A> errors, |
| javax.servlet.http.HttpServletRequest request)</PRE> |
| <DL> |
| <DD><B>Deprecated.</B> <I>As of Struts 1.1, replaced by <A HREF="../../../../org/apache/struts/validator/FieldChecks.html#validateMinLength(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionErrors, javax.servlet.http.HttpServletRequest)"><CODE>FieldChecks.validateMinLength(Object,ValidatorAction,Field,ActionErrors,HttpServletRequest)</CODE></A></I> |
| <P> |
| <DD><p> |
| |
| Checks if the field's length is greater than or equal to the minimum value. |
| A <code>Null</code> will be considered an error.</p> |
| <P> |
| <DD><DL> |
| </DL> |
| </DD> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>bean</CODE> - The bean validation is being performed on.<DD><CODE>va</CODE> - The <code>ValidatorAction</code> that is currently being performed.<DD><CODE>field</CODE> - The <code>Field</code> object associated with the current |
| field being validated.<DD><CODE>errors</CODE> - The <code>ActionErrors</code> object to add errors to if any |
| validation errors occur.<DD><CODE>request</CODE> - Current request object. |
| <DT><B>Returns:</B><DD>True if stated conditions met.</DL> |
| </DD> |
| </DL> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <HR> |
| |
| <!-- ========== START OF NAVBAR ========== --> |
| <A NAME="navbar_bottom"><!-- --></A> |
| <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"> |
| <TR> |
| <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
| <A NAME="navbar_bottom_firstrow"><!-- --></A> |
| <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> |
| <TR ALIGN="center" VALIGN="top"> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StrutsValidator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../org/apache/struts/util/ServletContextWriter.html"><B>PREV CLASS</B></A> |
| <A HREF="../../../../org/apache/struts/util/StrutsValidatorUtil.html"><B>NEXT CLASS</B></A></FONT></TD> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A> |
| <A HREF="StrutsValidator.html" TARGET="_top"><B>NO FRAMES</B></A> |
| |
| <SCRIPT> |
| <!-- |
| if(window==top) { |
| document.writeln('<A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>'); |
| } |
| //--> |
| </SCRIPT> |
| <NOSCRIPT> |
| <A HREF="../../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A> |
| </NOSCRIPT> |
| </FONT></TD> |
| </TR> |
| <TR> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <!-- =========== END OF NAVBAR =========== --> |
| |
| <HR> |
| Copyright © 2000-2003 - Apache Software Foundation |
| </BODY> |
| </HTML> |