mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-4071 Adds some comments about the supported *Aware interfaces
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1485153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+23
-20
@@ -30,7 +30,7 @@ import java.lang.reflect.Method;
|
||||
* An interceptor that makes sure there are not validation errors before allowing the interceptor chain to continue.
|
||||
* <b>This interceptor does not perform any validation</b>.
|
||||
* <p/>
|
||||
* <p/>This interceptor does nothing if the name of the method being invoked is specified in the <b>excludeMethods</b>
|
||||
* This interceptor does nothing if the name of the method being invoked is specified in the <b>excludeMethods</b>
|
||||
* parameter. <b>excludeMethods</b> accepts a comma-delimited list of method names. For example, requests to
|
||||
* <b>foo!input.action</b> and <b>foo!back.action</b> will be skipped by this interceptor if you set the
|
||||
* <b>excludeMethods</b> parameter to "input, back".
|
||||
@@ -42,33 +42,36 @@ import java.lang.reflect.Method;
|
||||
* all methods for both parameters.
|
||||
* See {@link MethodFilterInterceptor} for more info.
|
||||
* <p/>
|
||||
* <!-- END SNIPPET: description -->
|
||||
* <p/>
|
||||
* <p/> <u>Interceptor parameters:</u>
|
||||
* <p/>
|
||||
* <!-- START SNIPPET: parameters -->
|
||||
* <p/>
|
||||
* This interceptor also supports the following interfaces which can implemented by actions:
|
||||
* <ul>
|
||||
* <li>ValidationAware - implemented by ActionSupport class</li>
|
||||
* <li>ValidationWorkflowAware - allows changing result name programmatically</li>
|
||||
* <li>ValidationErrorAware - notifies action about errors and also allow change result name</li>
|
||||
* </ul>
|
||||
*
|
||||
* You can also use InputConfig annotation to change result name returned when validation errors occurred.
|
||||
*
|
||||
* <!-- END SNIPPET: description -->
|
||||
*
|
||||
* <u>Interceptor parameters:</u>
|
||||
*
|
||||
* <!-- START SNIPPET: parameters -->
|
||||
* <ul>
|
||||
* <p/>
|
||||
* <li>inputResultName - Default to "input". Determine the result name to be returned when
|
||||
* an action / field error is found.</li>
|
||||
* <p/>
|
||||
* </ul>
|
||||
* <p/>
|
||||
* <!-- END SNIPPET: parameters -->
|
||||
* <p/>
|
||||
* <p/> <u>Extending the interceptor:</u>
|
||||
* <p/>
|
||||
* <p/>
|
||||
* <p/>
|
||||
*
|
||||
* <u>Extending the interceptor:</u>
|
||||
*
|
||||
* <!-- START SNIPPET: extending -->
|
||||
* <p/>
|
||||
*
|
||||
* There are no known extension points for this interceptor.
|
||||
* <p/>
|
||||
*
|
||||
* <!-- END SNIPPET: extending -->
|
||||
* <p/>
|
||||
* <p/> <u>Example code:</u>
|
||||
* <p/>
|
||||
*
|
||||
* <u>Example code:</u>
|
||||
*
|
||||
* <pre>
|
||||
* <!-- START SNIPPET: example -->
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user