以下是一个使用 Struts2 实现拦截 JSP 页面的简单例子:
在项目中创建一个名为 `InterceptJspAction` 的 Struts2 Action 类,该类需要实现 `Interceptor` 接口:

```java
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.Interceptor;
public class InterceptJspAction implements Interceptor {
@Override
public String intercept(ActionInvocation invocation) throws Exception {
// 在这里添加拦截逻辑
System.out.println("







