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

📄 fieldchecks.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if the field can safely be converted to a short primitive.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/struts/validator/FieldChecks.html#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)">validateUrl</A></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)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Checks if a field has a valid url.</TD>
</TR>
</TABLE>
&nbsp;<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><clinit>, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<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="log"><!-- --></A><H3>
log</H3>
<PRE>
private static final org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>Commons Logging instance.</DL>
<HR>

<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>
</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>
</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>
</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="FieldChecks()"><!-- --></A><H3>
FieldChecks</H3>
<PRE>
public <B>FieldChecks</B>()</PRE>
<DL>
</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.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateRequired</H3>
<PRE>
public static boolean <B>validateRequired</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 isn't null and length of the field is greater than zero not including whitespace.<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 meets stated requirements, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="validateRequiredIf(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>
validateRequiredIf</H3>
<PRE>
public static boolean <B>validateRequiredIf</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 isn't null based on the values of other fields.<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 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.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateMask</H3>
<PRE>
public static boolean <B>validateMask</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 matches the regular expression in the field's mask attribute.<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 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.ActionMessages, org.apache.commons.validator.Validator, javax.servlet.http.HttpServletRequest)"><!-- --></A><H3>
validateByte</H3>
<PRE>
public static java.lang.Object <B>validateByte</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 can safely be converted to a byte primitive.<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 currentfield being validated.<DD><CODE>errors</CODE> - The <code>ActionMessages</code> object to add errors to ifany 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="validateShort(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>
validateShort</H3>
<PRE>
public static java.lang.Object <B>validateShort</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,

⌨️ 快捷键说明

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