| java.lang.Object org.apache.struts.validator.ValidatorPlugIn
ValidatorPlugIn | public class ValidatorPlugIn implements PlugIn(Code) | | Loads ValidatorResources based on configuration in the
struts-config.xml file.
version: $Rev: 483039 $ $Date: 2005-08-30 00:22:27 -0400 (Tue, 30 Aug 2005) version: $ since: Struts 1.1 |
Field Summary | |
final public static String | STOP_ON_ERROR_KEY Application scope key that StopOnError is stored under. | final public static String | VALIDATOR_KEY Application scope key that ValidatorResources is stored
under. | protected ValidatorResources | resources The set of Form instances that have been created and initialized, keyed
by the struts form name. |
Method Summary | |
public void | destroy() Gracefully shut down, releasing any resources that were allocated at
initialization. | protected void | destroyResources() Destroy ValidatorResources . | public String | getPathnames() Gets a comma delimitted list of Validator resources. | public void | init(ActionServlet servlet, ModuleConfig config) Initialize and load our resources. | protected void | initResources() Initialize the validator resources for this module. | public boolean | isStopOnFirstError() Gets the value for stopOnFirstError. | public void | setPathnames(String pathnames) Sets a comma delimitted list of Validator resources. | public void | setStopOnFirstError(boolean stopOnFirstError) Sets the value for stopOnFirstError. |
STOP_ON_ERROR_KEY | final public static String STOP_ON_ERROR_KEY(Code) | | Application scope key that StopOnError is stored under.
since: Struts 1.2 |
VALIDATOR_KEY | final public static String VALIDATOR_KEY(Code) | | Application scope key that ValidatorResources is stored
under.
|
resources | protected ValidatorResources resources(Code) | | The set of Form instances that have been created and initialized, keyed
by the struts form name.
|
destroy | public void destroy()(Code) | | Gracefully shut down, releasing any resources that were allocated at
initialization.
|
destroyResources | protected void destroyResources()(Code) | | Destroy ValidatorResources .
|
getPathnames | public String getPathnames()(Code) | | Gets a comma delimitted list of Validator resources.
comma delimited list of Validator resource path names |
init | public void init(ActionServlet servlet, ModuleConfig config) throws ServletException(Code) | | Initialize and load our resources.
Parameters: servlet - The ActionServlet for our application Parameters: config - The ModuleConfig for our owning module throws: ServletException - if we cannot configure ourselves correctly |
isStopOnFirstError | public boolean isStopOnFirstError()(Code) | | Gets the value for stopOnFirstError.
A boolean indicating whether JavaScript validation should stopwhen it finds the first error (Struts 1.1 behaviour) orcontinue validation. since: Struts 1.2 |
setPathnames | public void setPathnames(String pathnames)(Code) | | Sets a comma delimitted list of Validator resources.
Parameters: pathnames - delimited list of Validator resource path names |
setStopOnFirstError | public void setStopOnFirstError(boolean stopOnFirstError)(Code) | | Sets the value for stopOnFirstError.
Parameters: stopOnFirstError - A boolean indicating whether JavaScriptvalidation should stop when it finds the firsterror (Struts 1.1 behaviour) or continuevalidation. since: Struts 1.2 |
|
|