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

📄 fieldchecks.html

📁 struts api,学习使用struts必备的文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
                                             javax.servlet.http.HttpServletRequest&nbsp;request)</PRE>
<DL>
<DD>Checks if the field can safely be converted to a short 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 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="validateInteger(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>
validateInteger</H3>
<PRE>
public static java.lang.Object <B>validateInteger</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 an int 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 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="validateLong(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>
validateLong</H3>
<PRE>
public static java.lang.Object <B>validateLong</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 long 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 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="validateFloat(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>
validateFloat</H3>
<PRE>
public static java.lang.Object <B>validateFloat</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 float 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 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="validateDouble(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>
validateDouble</H3>
<PRE>
public static java.lang.Object <B>validateDouble</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 double 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 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="validateDate(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>
validateDate</H3>
<PRE>
public static java.lang.Object <B>validateDate</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 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.<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="validateIntRange(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>
validateIntRange</H3>
<PRE>
public static boolean <B>validateIntRange</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 fields value is within a range (min &amp; max specified in the vars 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 in range, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="validateDoubleRange(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>
validateDoubleRange</H3>
<PRE>
public static boolean <B>validateDoubleRange</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 fields value is within a range (min &amp; max specified in the  vars 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 in range, false otherwise.</DL>
</DD>
</DL>
<HR>

<A NAME="validateFloatRange(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>
validateFloatRange</H3>
<PRE>
public static boolean <B>validateFloatRange</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 fields value is within a range (min &amp; max specified in the  vars 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 in range, false otherwise.</DL>

⌨️ 快捷键说明

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