Struts2 default interceptor description

Source: Internet
Author: User
Tags i18n
Interceptor/interceptor Name Description
Alias Alias The request parameters are converted between different requests, and the request content remains unchanged.
Chaining Chain This allows the attribute of the previous action to be accessed by the latter action. It is now used in combination with the result () of the chain type.
Checkbox Checkbox Added the checkbox automatic processing code, and set the content of the unselected checkbox to false. By default, HTML does not submit the unselected checkbox.
Cookies Cookies Use the configured name and value to specify cookies.
Conversion error Conversionerror Add an error from actioncontext to the action attribute Field
Create session Createsession Automatically create an httpsession to serve the interceptor that needs to use httpsession
Debugging Debugging Different debugging pages are provided to display internal data.
Execute and wait Execandwait Execute the action in the background and take the user to a waiting page in the middle
Exception Exception Locate the exception to a screen
File Upload Fileupload Provides the file upload function.
I18n I18n Record the selected locale
Logger Logger Name of the output action
Message store Store Stores or accesses messages, errors, and field errors in the action class that implements the validationaware interface.
Model Driven Model-driven If a class implements modeldriven, put the result of GetModel into the value stack.
Scoped Model Driven Scoped-model-driven If an action implements scoped Model Driven, this interceptor will retrieve the model from the corresponding scope and call the setmodel method in the action to put it into the action.
Parameters Params Set Request Parameters to action
Prepare Prepare If action implements preparable, the interceptor calls the prepare method of the action class.
Scope Scope Simple Method of saving action status to session and Application
Servlet config Servletconfig Provides methods for accessing httpservletrequest and httpservletresponse, and accesses the data by map.
Static Parameters Staticparams Set the content in the Struts. xml file to the corresponding action.
Roles Roles Determine whether the user has a role specified by JAAS. Otherwise, the role is not executed.
Timer Timer Time when the output action is executed
Token Token Use token to avoid double-clicking
Token session Tokensession It is the same as the token, but when you double-click it, the data is stored in the session.
Validation Validation Validate submitted data using the content defined in the action-validation.xml File
Workflow Workflow Call the validate method of action. If an error is returned, go to the input page again.
Parameter Filter N/ Remove unnecessary parameters from the parameter list
Profiling Profiling Activate profile through Parameters
Interceptor/interceptor Name Description
Alias Alias The request parameters are converted between different requests, and the request content remains unchanged.
Chaining Chain This allows the attribute of the previous action to be accessed by the latter action. It is now used in combination with the result () of the chain type.
Checkbox Checkbox Added the checkbox automatic processing code, and set the content of the unselected checkbox to false. By default, HTML does not submit the unselected checkbox.
Cookies Cookies Use the configured name and value to specify cookies.
Conversion error Conversionerror Add an error from actioncontext to the action attribute Field
Create session Createsession Automatically create an httpsession to serve the interceptor that needs to use httpsession
Debugging Debugging Different debugging pages are provided to display internal data.
Execute and wait Execandwait Execute the action in the background and take the user to a waiting page in the middle
Exception Exception Locate the exception to a screen
File Upload Fileupload Provides the file upload function.
I18n I18n Record the selected locale
Logger Logger Name of the output action
Message store Store Stores or accesses messages, errors, and field errors in the action class that implements the validationaware interface.
Model Driven Model-driven If a class implements modeldriven, put the result of GetModel into the value stack.
Scoped Model Driven Scoped-model-driven If an action implements scoped Model Driven, this interceptor will retrieve the model from the corresponding scope and call the setmodel method in the action to put it into the action.
Parameters Params Set Request Parameters to action
Prepare Prepare If action implements preparable, the interceptor calls the prepare method of the action class.
Scope Scope Simple Method of saving action status to session and Application
Servlet config Servletconfig Provides methods for accessing httpservletrequest and httpservletresponse, and accesses the data by map.
Static Parameters Staticparams Set the content in the Struts. xml file to the corresponding action.
Roles Roles Determine whether the user has a role specified by JAAS. Otherwise, the role is not executed.
Timer Timer Time when the output action is executed
Token Token Use token to avoid double-clicking
Token session Tokensession It is the same as the token, but when you double-click it, the data is stored in the session.
Validation Validation Validate submitted data using the content defined in the action-validation.xml File
Workflow Workflow Call the validate method of action. If an error is returned, go to the input page again.
Parameter Filter N/ Remove unnecessary parameters from the parameter list
Profiling Profiling Activate profile through Parameters

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.