⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fieldchecks.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DD>
</DL>
<HR>

<A NAME="validateCreditCard(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateCreditCard</H3>
<PRE>
public static java.lang.Object <B>validateCreditCard</B>(java.lang.Object&nbsp;bean,                                                  org.apache.commons.validator.ValidatorAction&nbsp;va,                                                  org.apache.commons.validator.Field&nbsp;field,                                                  <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors,                                                  org.apache.commons.validator.Validator&nbsp;validator,                                                  javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Checks if the field is a valid credit card number.<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>ActionMessages</code> object to add errors to if any      validation errors occur.<DD><CODE>validator</CODE> - The <code>Validator</code> instance, used to access      other field values.<DD><CODE>request</CODE> - Current request object.<DT><B>Returns:</B><DD>true if valid, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="validateEmail(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateEmail</H3>
<PRE>
public static boolean <B>validateEmail</B>(java.lang.Object&nbsp;bean,                                    org.apache.commons.validator.ValidatorAction&nbsp;va,                                    org.apache.commons.validator.Field&nbsp;field,                                    <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors,                                    org.apache.commons.validator.Validator&nbsp;validator,                                    javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Checks if a field has a valid e-mail address.<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>ActionMessages</code> object to add errors to if any      validation errors occur.<DD><CODE>validator</CODE> - The <code>Validator</code> instance, used to access      other field values.<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.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateMaxLength</H3>
<PRE>
public static boolean <B>validateMaxLength</B>(java.lang.Object&nbsp;bean,                                        org.apache.commons.validator.ValidatorAction&nbsp;va,                                        org.apache.commons.validator.Field&nbsp;field,                                        <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors,                                        org.apache.commons.validator.Validator&nbsp;validator,                                        javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Checks if the field's length is less than or equal to the maximum value.  A <code>Null</code> will be considered an error.<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>ActionMessages</code> object to add errors to if any      validation errors occur.<DD><CODE>validator</CODE> - The <code>Validator</code> instance, used to access      other field values.<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.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateMinLength</H3>
<PRE>
public static boolean <B>validateMinLength</B>(java.lang.Object&nbsp;bean,                                        org.apache.commons.validator.ValidatorAction&nbsp;va,                                        org.apache.commons.validator.Field&nbsp;field,                                        <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors,                                        org.apache.commons.validator.Validator&nbsp;validator,                                        javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Checks if the field's length is greater than or equal to the minimum value. A <code>Null</code> will be considered an error.<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>ActionMessages</code> object to add errors to if any      validation errors occur.<DD><CODE>validator</CODE> - The <code>Validator</code> instance, used to access      other field values.<DD><CODE>request</CODE> - Current request object.<DT><B>Returns:</B><DD>True if stated conditions met.</DL>
</DD>
</DL>
<HR>

<A NAME="validateUrl(java.lang.Object, org.apache.commons.validator.ValidatorAction, org.apache.commons.validator.Field, org.apache.struts.action.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateUrl</H3>
<PRE>
public static boolean <B>validateUrl</B>(java.lang.Object&nbsp;bean,                                  org.apache.commons.validator.ValidatorAction&nbsp;va,                                  org.apache.commons.validator.Field&nbsp;field,                                  <A HREF="../../../../org/apache/struts/action/ActionMessages.html">ActionMessages</A>&nbsp;errors,                                  org.apache.commons.validator.Validator&nbsp;validator,                                  javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Checks if a field has a valid url. Four optional variables can be specified to configure url validation. <ul>    <li>Variable <code>allow2slashes</code> can be set to <code>true</code> or        <code>false</code> to control whether two slashes are allowed -        default is <code>false</code> (i.e. two slashes are NOT allowed).</li>    <li>Variable <code>nofragments</code> can be set to <code>true</code> or        <code>false</code> to control whether fragments are allowed -        default is <code>false</code> (i.e. fragments ARE allowed).</li>    <li>Variable <code>allowallschemes</code> can be set to <code>true</code> or        <code>false</code> to control if all schemes are allowed - default        is <code>false</code> (i.e. all schemes are NOT allowed).</li>    <li>Variable <code>schemes</code> can be set to a comma delimited list of        valid schemes. This value is ignored if <code>allowallschemes</code>        is set to <code>true</code>. Default schemes allowed are "http",        "https" and "ftp" if this variable is not specified.</li> </ul><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>ActionMessages</code> object to add errors to if any      validation errors occur.<DD><CODE>validator</CODE> - The <code>Validator</code> instance, used to access      other field values.<DD><CODE>request</CODE> - Current request object.<DT><B>Returns:</B><DD>True if valid, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="isString(java.lang.Object)"><!-- --></A><H3>
isString</H3>
<PRE>
protected static boolean <B>isString</B>(java.lang.Object&nbsp;o)</PRE>
<DL>
<DD>Return <code>true</code> if the specified object is a String or a <code>null</code>  value.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>o</CODE> - Object to be tested<DT><B>Returns:</B><DD>The string value</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=2 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>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FieldChecks.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../org/apache/struts/validator/DynaValidatorForm.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../org/apache/struts/validator/LazyValidatorForm.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>  &nbsp;
&nbsp;<A HREF="FieldChecks.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
Copyright 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -