struts2 拦截器1
2013-12-04 22:50
183 查看
action invoke前会调用,invoke后会调用
public class FirstInterceptor extends AbstractInterceptor{ @Override public String intercept(ActionInvocation actionInvocation) throws Exception { String result = actionInvocation.invoke(); return result; } }
<interceptors> <interceptor name="firstInter" class="com.wolfgang.interceptor.FirstInterceptor"></interceptor> </interceptors>
<action name="testOGNL" class="com.wolfgang.action.TestOGNL"> <interceptor-ref name="firstInter"></interceptor-ref> <result>/OGNL/static.jsp</result> </action>
相关文章推荐
- Struts2 拦截器 实现登录权限
- Struts2拦截器2
- struts2 拦截器介绍
- struts2采用拦截器做权限控制
- JAVA_WEB Struts2学习:struts2自定义拦截器
- Struts2拦截器
- 用struts2拦截器实现权限检查
- Struts2 自定义拦截器
- 浅谈Struts2拦截器的原理与实现
- Struts2拦截器实现日志管理系统
- Struts2拦截器实现日志管理系统
- struts2_大纲05_拦截器
- Struts2自己定义拦截器实例—登陆权限验证
- struts2 拦截器实现实例
- Struts2中的(Interceptor)拦截器的执行顺序
- Struts2拦截器详解
- struts2的拦截器和过滤器
- 九、Struts2之拦截器
- Struts2 拦截器详解(一)
- struts2拦截器之用户session判断