随笔分类 -  struts

摘要:1: Map IoC 方式packagecom.action;importjava.util.Map;importorg.apache.struts2.interceptor.ApplicationAware;importorg.apache.struts2.interceptor.RequestAware;importorg.apache.struts2.interceptor.SessionAware;importcom.opensymphony.xwork2.ActionSupport;publicclassUserAction1extendsActionSupportimplement 阅读全文
posted @ 2011-12-12 15:49 真悲剧 阅读(592) 评论(0) 推荐(0)
摘要:FilterDispatcher是早期struts2的过滤器,后期的都用StrutsPrepareAndExecuteFilter了,如2.1.6、2.1.8。StrutsPrepareAndExecuteFilter名字已经很能说明问题了,prepare与execute,前者表示准备,可以说是指filter中的init方法,即配制的导入;后者表示进行过滤,指doFilter方法,即将request请求,转发给对应的action去处理。FilterDispatcher是struts2.0.x到2.1.2版本的核心过滤器.!StrutsPrepareAndExecuteFilter是自2.1.3 阅读全文
posted @ 2011-12-09 15:17 真悲剧 阅读(303) 评论(0) 推荐(0)