Struts 拦截器 、

 首先 ,我们来看一下大致结构 : 

  如下图所示:                    Struts 拦截器 、




其次,创建LoginAction 类   :Struts 拦截器 、



创建拦截器类 MyTimerInterceptor   :  

Struts 拦截器 、  实现 Interceptor接口。




页面在这里省略 ,直接来看大配置   struts.xml:   其中添加节点    如图所示:Struts 拦截器 、