Struts 2 Bean Tag Example

In Struts 2, the  “bean” tag is used to create a Java class and place it in the stack’s Context. In this lesson, we will use the “bean” tag to instantiate a Java object inside a JSP page, and then display the content…

Struts 2 Custom Interceptor Example

Generally, the default interceptors are sufficient for most applications, however, we can still create our own interceptor when we need to implement more specific action processing. In this example, we are going to see how to write a custom interceptor…