Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.validator.ValidatorResources |
resources
The set of Form instances that have been created and initialized, keyed
by the struts form name.
|
static String |
STOP_ON_ERROR_KEY
Application scope key that
StopOnError is stored under. |
static String |
VALIDATOR_KEY
Application scope key that
ValidatorResources is stored
under. |
Constructor and Description |
---|
ValidatorPlugIn() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Gracefully shut down, releasing any resources that were allocated at
initialization.
|
protected void |
destroyResources()
Destroy
ValidatorResources . |
String |
getPathnames()
Gets a comma delimitted list of Validator resources.
|
void |
init(ActionServlet servlet,
ModuleConfig config)
Initialize and load our resources.
|
protected void |
initResources()
Initialize the validator resources for this module.
|
boolean |
isStopOnFirstError()
Gets the value for stopOnFirstError.
|
void |
setPathnames(String pathnames)
Sets a comma delimitted list of Validator resources.
|
void |
setStopOnFirstError(boolean stopOnFirstError)
Sets the value for stopOnFirstError.
|
public static final String VALIDATOR_KEY
ValidatorResources
is stored
under.public static final String STOP_ON_ERROR_KEY
StopOnError
is stored under.protected org.apache.commons.validator.ValidatorResources resources
public String getPathnames()
public void setPathnames(String pathnames)
pathnames
- delimited list of Validator resource path namespublic boolean isStopOnFirstError()
public void setStopOnFirstError(boolean stopOnFirstError)
stopOnFirstError
- A boolean indicating whether JavaScript
validation should stop when it finds the first
error (Struts 1.1 behaviour) or continue
validation.public void init(ActionServlet servlet, ModuleConfig config) throws javax.servlet.ServletException
public void destroy()
protected void initResources() throws IOException, javax.servlet.ServletException
IOException
- if an input/output error is encounteredjavax.servlet.ServletException
- if we cannot initialize these resourcesprotected void destroyResources()
ValidatorResources
.Copyright © 2000–2016 Apache Software Foundation. All rights reserved.