Struts 拦截器 、
首先 ,我们来看一下大致结构 :
如下图所示:
其次,创建LoginAction 类 :
创建拦截器类 MyTimerInterceptor :
实现 Interceptor接口。
页面在这里省略 ,直接来看大配置 struts.xml: 其中添加节点 如图所示:
首先 ,我们来看一下大致结构 :
如下图所示:
其次,创建LoginAction 类 :
创建拦截器类 MyTimerInterceptor :
实现 Interceptor接口。
页面在这里省略 ,直接来看大配置 struts.xml: 其中添加节点 如图所示: