package com.struts2.interceptor;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;
public class MethInterceptor extends MethodFilterInterceptor {
@Override
protected String doIntercept(ActionInvocation invoke) throws Exception {
System.out.println("这里是方法拦截器");
return invoke.invoke();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
struts2拦截器解决重复提交源代码
共19个文件
jar:5个
jsp:3个
xml:3个
4星 · 超过85%的资源 需积分: 3 51 下载量 24 浏览量
2009-10-30
12:48:24
上传
评论
收藏 3.21MB RAR 举报
温馨提示
本压缩包中是eclipse项目,代码方便易懂,来解决重复提交问题。
资源推荐
资源详情
资源评论
收起资源包目录
struts2.rar (19个子文件)
struts2
.project 1KB
.mymetadata 294B
WebRoot
success.jsp 245B
WEB-INF
web.xml 632B
lib
ognl-2.6.11.jar 164KB
commons-logging-1.0.4.jar 37KB
xwork-2.0.5.jar 447KB
freemarker-2.3.8.jar 784KB
struts2-core-2.0.11.2.jar 2.22MB
classes
com
struts2
action
RegisterOrLoginAction.class 799B
interceptor
MethInterceptor.class 867B
struts.xml 1KB
index.jsp 428B
regist.jsp 248B
META-INF
MANIFEST.MF 39B
.myeclipse
src
com
struts2
action
RegisterOrLoginAction.java 388B
interceptor
MethInterceptor.java 389B
struts.xml 1KB
.classpath 802B
共 19 条
- 1
资源评论
- zjwpopstar19802013-12-02基本上没用,还是可以重复提交。
- shaogx1232014-08-26基本上没用
- JingMingLuo2014-02-27还可以,对我帮助很大
- 丨范坚强丨2013-02-26下载下来看了一下代码,但没有运行,楼主只是写了一个大概比较简单的让新手入手的拦截器。打两分吧,感觉不是特别吸引我。是入门级的,内容不是特别全
- 范少华_9112013-03-11已经用了。很不错
superbingo
- 粉丝: 6
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功