Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com
Last updated: Aug 31, 2022

Struts 2 Interceptor

Interceptors are conceptually the same as servlet filters or the JDKs Proxy class. Interceptors allow for crosscutting functionality to be implemented separately from the action as well as the framework. Interceptor is an object that is invoked during the preprocessing and postprocessing of a request. In Struts 2, Interceptor is used to perform operations such as Validation, Exception Handling, Internationalization, Displaying Intermediate results, etc.
Custom Interceptor MEDIUM
In this article, we will discuss the custom Interceptor present in Java. We will further discuss the different parameters present in the custom Interceptor in Java.
Params Interceptor MEDIUM
This article will discuss the Params Interceptor's parameters and an example.
execAndWait Interceptor MEDIUM
In this article, we will discuss the execAndWait Interceptor present in Java. We will further discuss the different parameters present in the execAndWait Interceptor. We will also look at an example to understand the working of execAndWait Interceptor.
Prepare Interceptor MEDIUM
In this article, we will discuss the prepare Interceptor present in Java. We will further discuss the different parameters present in the prepare Interceptor in Java. We will also look at an example to understand the working of prepare Interceptor.
modelDriven Interceptor MEDIUM
In this article, we will discuss the modelDriven Interceptor present in Java. We will further discuss the different parameters present in the modelDriven Interceptor in Java. We will also look at an example to understand the working of modelDriven Interceptor.
Exception Interceptor MEDIUM
In this article, we will discuss the exception interceptor with its internal working, parameters, and an example.
fileUpload Interceptor MEDIUM
We will discuss the Struts, and One of its Interceptors, i.e., fileUpload Interceptor with its example.