Struts2 Default Interceptor

Source: Internet
Author: User
And of course there are many interceptor stacks, so let's look at the interceptor first.

Interceptor name < XmlNamespace prefix = "o" ns = "Urn:schemas-microsoft-com:office:office"/>

Aliasinterceptor

"Alias Blocker"

Configuration name

Alias

Describe

Allows parameters to use different aliases across multiple requests, which can be used to link multiple actions with different names, and then to process the same information

The corresponding class

Com.opensymphony.xwork2.interceptor.AliasInterceptor

Interceptor Name

Actionautowiringinterceptor

"Auto Assemble Interceptor"

Configuration name

Autowiring

Describe

An interceptor for automatic information assembly, used primarily when struts2 and spring are integrated, struts can use automatic assembly to access beans in the spring container.

The corresponding class

Com.opensymphony.xwork2.spring.interceptor.ActionAutowiringInterceptor

Interceptor Name

Chaininginterceptor

"Chain Blocker"

Configuration name

Chain

Describe

Allows the current action to use the property of the last action being executed, which is typically used with the "chain" result type (<result type= "Chain" .../>)

The corresponding class

Com.opensymphony.xwork2.interceptor.ChainingInterceptor

Interceptor Name

Checkbox Interceptor

"Multi Marquee Interceptor"

Configuration name

CheckBox

Describe

Adds a parameter with a value of false for a multi-box that is not selected, and assists in managing the Multi box (in HTTP requests, those boxes that are not selected are usually without any information)

The corresponding class

Org.apache.struts2.interceptor.CheckboxInterceptor

Interceptor Name

Conversionerrorinterceptor

"Conversion error Blocker"

Configuration name

Conversionerror

Describe

Store conversion error information (including converted strings and parameter types) into the field error set of the action

The corresponding class

Org.apache.struts2.interceptor.StrutsConversionErrorInterceptor

Interceptor Name

Cookieinterceptor

"Cookie Blocker"

Configuration name

Cookies

Describe

Use the configured Name,value to specify cookies

The corresponding class

Org.apache.struts2.interceptor.CookieInterceptor

Interceptor Name

Clearsessioninterceptor

"Clear Session Blocker"

Configuration name

Clearsession

Describe

Responsible for destroying httpseesion.

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.