Architecture in a Nutshell(架构概要)
request->Servlet filter-->before interceptors->action-->preresultlistener->result->after interceptors-->response
其中核心部分是interceptors,action,result
Struts Tags in a nutshell(标记库概要)
标记库存在的主要意义就是减少页面代码,已经封装多个页面html元素到一个标记库中,以求最大化复用性。
Struts Configuration in a Nutshell
主要配置文件集中在struts.xml文件中,该文件主要配置applcation运行interceptors,actions,results等信息。现在可以利用annotation来代替xml文件做配置。
Struts MVC in a Nutshell
分离mvc的职责,让taglib和model承当大部分heavy lifting,control只是承当交通警察的角色(定义处理请求,准备model,处理后跳转请求)。
request->Servlet filter-->before interceptors->action-->preresultlistener->result->after interceptors-->response
其中核心部分是interceptors,action,result
Struts Tags in a nutshell(标记库概要)
标记库存在的主要意义就是减少页面代码,已经封装多个页面html元素到一个标记库中,以求最大化复用性。
Struts Configuration in a Nutshell
主要配置文件集中在struts.xml文件中,该文件主要配置applcation运行interceptors,actions,results等信息。现在可以利用annotation来代替xml文件做配置。
Struts MVC in a Nutshell
分离mvc的职责,让taglib和model承当大部分heavy lifting,control只是承当交通警察的角色(定义处理请求,准备model,处理后跳转请求)。