org.apache.struts2.s1
Class ActionFormValidationInterceptor
java.lang.Object
com.opensymphony.xwork2.interceptor.AbstractInterceptor
org.apache.struts2.s1.ActionFormValidationInterceptor
- All Implemented Interfaces:
- com.opensymphony.xwork2.interceptor.Interceptor, java.io.Serializable
public class ActionFormValidationInterceptor
- extends com.opensymphony.xwork2.interceptor.AbstractInterceptor
Calls the validate() method on the ActionForm, if it exists. The errors are handled
like regular XWork validation errors. Action-level validation flag supported if the
action is a subclass of Struts1Action.
- See Also:
- Serialized Form
Methods inherited from class com.opensymphony.xwork2.interceptor.AbstractInterceptor |
destroy, init |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionFormValidationInterceptor
public ActionFormValidationInterceptor()
intercept
public java.lang.String intercept(com.opensymphony.xwork2.ActionInvocation invocation)
throws java.lang.Exception
- Specified by:
intercept
in interface com.opensymphony.xwork2.interceptor.Interceptor
- Specified by:
intercept
in class com.opensymphony.xwork2.interceptor.AbstractInterceptor
- Throws:
java.lang.Exception
loadResources
protected org.apache.commons.validator.ValidatorResources loadResources(javax.servlet.ServletContext ctx)
throws java.io.IOException,
javax.servlet.ServletException
- Initialize the validator resources for this module.
- Throws:
java.io.IOException
- if an input/output error is encountered
javax.servlet.ServletException
- if we cannot initialize these resources
getPathnames
public java.lang.String getPathnames()
- Returns:
- the pathnames
setPathnames
public void setPathnames(java.lang.String pathNames)
- Parameters:
pathnames
- the pathnames to set
isStopOnFirstError
public boolean isStopOnFirstError()
- Returns:
- the stopOnFirstError
setStopOnFirstError
public void setStopOnFirstError(boolean stopOnFirstError)
- Parameters:
stopOnFirstError
- the stopOnFirstError to set
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.