摘要: FilterDispatcher是早期struts2的过滤器,后期的都用StrutsPrepareAndExecuteFilter了,如 2.1.6、2.1.8。StrutsPrepareAndExecuteFilter名字已经很能说明问题了,prepare与execute,前者表示准备,可以说是指 阅读全文
posted @ 2017-03-13 10:40 夜心 阅读(183) 评论(0) 推荐(0)
摘要: Struts2的核心功能是action,对于开发人员来说,使用Struts2主要就是编写action,action类通常都要实现com.opensymphony.xwork2.Action接口,并实现该接口中的execute()方法。 该方法如下: public String execute() t 阅读全文
posted @ 2017-03-13 10:36 夜心 阅读(451) 评论(0) 推荐(0)