首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Struts2 权威指南 读书笔记簿(二)

2012-10-08 
Struts2 权威指南 读书笔记本(二)拦截器与拦截器stack的配置放在struts.xml中,在ACTION中将拦截器配置在re

Struts2 权威指南 读书笔记本(二)

拦截器与拦截器stack的配置放在struts.xml中,在ACTION中将拦截器配置在result之后。

定义拦截器: <interceptor? >????? /??? <interceptors>

使用拦截器:<interceptor-ref>

?

要实现自己的拦截器,在struts2中要实现 com.opensymphony.xwork2.interceptor.Interceptor接口 其中有三个方法

??

?

?

?

?

?

热点排行