struts
mohan_888
这个作者很懒,什么都没留下…
展开
-
struts2常用的预定义拦截器
1:params拦截器这个拦截器是必不可少的,因为就是由它偷偷的把请求参数设置到相应的Action的属性去的,并自动进行类型转换。2:staticParams拦截器将struts.xml配置文件里定义的Action参数,设置到对应的Action实例中,Action参数使用标签,是标签的子元素。struts.xml的示例如下: test转载 2012-12-07 09:37:53 · 867 阅读 · 0 评论 -
actionInvocation.invoke()是什么意思
Struts2的自定义的验证截器package ch06.struts2.Interceptor;import java.util.Map;import com.opensymphony.xwork2.Action;import com.opensymphony.xwork2.ActionInvocation;import com.opensymphony.xwork2.inter转载 2012-12-07 09:58:23 · 486 阅读 · 0 评论