posts - 85,  comments - 21,  views - 94742
摘要: Interceptor(拦截器)框架:Interceptor(拦截器)将Action共用的行为独立出来,在Action执行前后运行,这也就是我们所说的AOP(面向切面编程)。在webwork中如何创建自己的拦截器,并使用它。1、 创建一个自己需要的Interceptor类,它必需实现com.opensymphony.xwork.interceptor.Interceptor接口,具体的开发见下面的... 阅读全文
posted @ 2007-06-25 10:45 王永庆 阅读(551) 评论(4) 推荐(0) 编辑
摘要: register-result.jsp result标签里面的"name"值表示action根据名字进行视图输出。type决定采用那一种视图技术,将执行结果展现给用户,下面是Type的类型:(1)、dispatcher:通过javax.servlet.RequestDispatcher的forward()或include()方法调度到页面展现,这样的页面一般是Jsp页面。location... 阅读全文
posted @ 2007-06-25 10:06 王永庆 阅读(435) 评论(0) 推荐(0) 编辑
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示