📄 validatorplugin.html
字号:
<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 org.apache.commons.logging.Log <B>log</B></PRE>
<DL>
<DD>Commons Logging instance.</DL>
<HR>
<A NAME="config"><!-- --></A><H3>
config</H3>
<PRE>
private <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> <B>config</B></PRE>
<DL>
<DD>The module configuration for our owning module.</DL>
<HR>
<A NAME="servlet"><!-- --></A><H3>
servlet</H3>
<PRE>
private <A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A> <B>servlet</B></PRE>
<DL>
<DD>The <A HREF="../../../../org/apache/struts/action/ActionServlet.html"><CODE>ActionServlet</CODE></A> owning this application.</DL>
<HR>
<A NAME="RESOURCE_DELIM"><!-- --></A><H3>
RESOURCE_DELIM</H3>
<PRE>
private static final java.lang.String <B>RESOURCE_DELIM</B></PRE>
<DL>
<DD>Delimitter for Validator resources.</DL>
<HR>
<A NAME="VALIDATOR_KEY"><!-- --></A><H3>
VALIDATOR_KEY</H3>
<PRE>
public static final java.lang.String <B>VALIDATOR_KEY</B></PRE>
<DL>
<DD>Application scope key that <code>ValidatorResources</code> is stored under.</DL>
<HR>
<A NAME="STOP_ON_ERROR_KEY"><!-- --></A><H3>
STOP_ON_ERROR_KEY</H3>
<PRE>
public static final java.lang.String <B>STOP_ON_ERROR_KEY</B></PRE>
<DL>
<DD>Application scope key that <code>StopOnError</code> is stored under.<DD><DL>
<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="resources"><!-- --></A><H3>
resources</H3>
<PRE>
protected org.apache.commons.validator.ValidatorResources <B>resources</B></PRE>
<DL>
<DD>The set of Form instances that have been created and initialized, keyed by the struts form name.</DL>
<HR>
<A NAME="pathnames"><!-- --></A><H3>
pathnames</H3>
<PRE>
private java.lang.String <B>pathnames</B></PRE>
<DL>
<DD>A comma delimitted list of Validator resource.</DL>
<HR>
<A NAME="stopOnFirstError"><!-- --></A><H3>
stopOnFirstError</H3>
<PRE>
private boolean <B>stopOnFirstError</B></PRE>
<DL>
<DD>Informs the Validators if it has to stop validation when finding the first error or if it should continue. Default to <code>true</code> to keep Struts 1.1 backwards compatibility.</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="ValidatorPlugIn()"><!-- --></A><H3>
ValidatorPlugIn</H3>
<PRE>
public <B>ValidatorPlugIn</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="getPathnames()"><!-- --></A><H3>
getPathnames</H3>
<PRE>
public java.lang.String <B>getPathnames</B>()</PRE>
<DL>
<DD>Gets a comma delimitted list of Validator resources.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>comma delimited list of Validator resource path names</DL>
</DD>
</DL>
<HR>
<A NAME="setPathnames(java.lang.String)"><!-- --></A><H3>
setPathnames</H3>
<PRE>
public void <B>setPathnames</B>(java.lang.String pathnames)</PRE>
<DL>
<DD>Sets a comma delimitted list of Validator resources.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pathnames</CODE> - delimited list of Validator resource path names</DL>
</DD>
</DL>
<HR>
<A NAME="isStopOnFirstError()"><!-- --></A><H3>
isStopOnFirstError</H3>
<PRE>
public boolean <B>isStopOnFirstError</B>()</PRE>
<DL>
<DD>Gets the value for stopOnFirstError.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>A boolean indicating whether JavaScript validation should stop when it finds the first error (Struts 1.1 behaviour) or continue validation.<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="setStopOnFirstError(boolean)"><!-- --></A><H3>
setStopOnFirstError</H3>
<PRE>
public void <B>setStopOnFirstError</B>(boolean stopOnFirstError)</PRE>
<DL>
<DD>Sets the value for stopOnFirstError.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>stopOnFirstError</CODE> - A boolean indicating whether JavaScript validation should stop when it finds the first error (Struts 1.1 behaviour) or continue validation.<DT><B>Since: </B><DD>Struts 1.2</DD>
</DL>
</DD>
</DL>
<HR>
<A NAME="init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig)"><!-- --></A><H3>
init</H3>
<PRE>
public void <B>init</B>(<A HREF="../../../../org/apache/struts/action/ActionServlet.html">ActionServlet</A> servlet, <A HREF="../../../../org/apache/struts/config/ModuleConfig.html">ModuleConfig</A> config) throws javax.servlet.ServletException</PRE>
<DL>
<DD>Initialize and load our resources.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/apache/struts/action/PlugIn.html#init(org.apache.struts.action.ActionServlet, org.apache.struts.config.ModuleConfig)">init</A></CODE> in interface <CODE><A HREF="../../../../org/apache/struts/action/PlugIn.html">PlugIn</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>servlet</CODE> - The ActionServlet for our application<DD><CODE>config</CODE> - The ModuleConfig for our owning module<DT><B>Throws:</B><DD><CODE>javax.servlet.ServletException</CODE> - if we cannot configure ourselves correctly</DL>
</DD>
</DL>
<HR>
<A NAME="destroy()"><!-- --></A><H3>
destroy</H3>
<PRE>
public void <B>destroy</B>()</PRE>
<DL>
<DD>Gracefully shut down, releasing any resources that were allocated at initialization.<DD><DL>
<DT><B>Specified by: </B><DD><CODE><A HREF="../../../../org/apache/struts/action/PlugIn.html#destroy()">destroy</A></CODE> in interface <CODE><A HREF="../../../../org/apache/struts/action/PlugIn.html">PlugIn</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="initResources()"><!-- --></A><H3>
initResources</H3>
<PRE>
protected void <B>initResources</B>() throws java.io.IOException, javax.servlet.ServletException</PRE>
<DL>
<DD>Initialize the validator resources for this module.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - if an input/output error is encountered<DD><CODE>javax.servlet.ServletException</CODE> - if we cannot initialize these resources</DL>
</DD>
</DL>
<HR>
<A NAME="destroyResources()"><!-- --></A><H3>
destroyResources</H3>
<PRE>
protected void <B>destroyResources</B>()</PRE>
<DL>
<DD>Destroy <code>ValidatorResources</code>.<DD><DL>
</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> </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/ValidatorPlugIn.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/validator/ValidatorForm.html"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>
<A HREF="ValidatorPlugIn.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: INNER | <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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -