Interception Device |
name |
Description |
Alias Interceptor |
Alias |
The request parameter is converted between different requests and the request content is unchanged. |
Chaining Interceptor |
Chain |
The property of the previous action can be accessed by the latter action, and is now used in conjunction with the chain type of result (<result type= "Chain" >). |
Checkbox Interceptor |
CheckBox |
Added a checkbox to automatically process the code, setting the contents of the unchecked checkbox to False, while HTML does not submit a checkbox that is not checked by default. |
Cookies Interceptor |
Cookies |
Use the configured Name,value to refer to cookies |
Conversion Error Interceptor |
Conversionerror |
Add the error from Actioncontext to the action's property field. |
Create Session Interceptor |
CreateSession |
The httpsession is automatically created to serve interceptors that need to use the httpsession. |
Debugging Interceptor |
Debugging |
Provide different debugging pages to show the internal data condition. |
Execute and Wait Interceptor |
Execandwait |
Executes the action in the background and takes the user to an intermediate waiting page. |
Exception Interceptor |
exception |
Position the exception to a screen |
File Upload Interceptor |
FileUpload |
Provide file Upload function |
I18N Interceptor |
i18n |
Record User-selected locale |
Logger Interceptor |
Logger |
The name of the output action |
Message Store Interceptor |
Store |
Stores or accesses the message, Error, field error, and so on of the action class that implements the Validationaware interface. |
Model Driven Interceptor |
Model-driven |
If a class implements Modeldriven, the results of Getmodel are placed in the value stack. |
Scoped Model Driven |
Scoped-model-driven |
If an action implements Scopedmodeldriven, the interceptor will remove the model from the corresponding scope by invoking the Setmodel method of the action to put it inside the action. |
Parameters Interceptor |
Params |
Set the parameters in the request to the action. |
Prepare Interceptor |
Prepare |
If Acton implements Preparable, the interceptor invokes the prepare method of the action class. |
Scope Interceptor |
Scope |
A simple way to put the action state into session and application. |
Servlet Config Interceptor |
ServletConfig |
Provides access to HttpServletRequest and HttpServletResponse methods, which are accessed in map mode. |
Static Parameters Interceptor |
Staticparams |
From the Struts.xml file, set the contents of <param> in <action> to the corresponding action. |
Roles Interceptor |
Roles |
Determines whether the user has a role specified by Jaas, otherwise it is not executed. |
Timer Interceptor |
Timer |
Output the time the action was executed |
Token Interceptor |
Token |
Use tokens to avoid double-clicking |
Token Session Interceptor |
Tokensession |
Same as token interceptor, but when you double-click to store the requested data in session |
Validation Interceptor |
Validation |
Verifies the submitted data using the content defined in the Action-validation.xml file. |
Workflow Interceptor |
Workflow |
Call the action's Validate method, and once the error returns, relocate to the input screen |
Parameter Filter Interceptor |
N/A |