Advanced Web Technology Dice Job Count 流行的5种框架比较 WebWork Struts Spring MvC 职位的需求数量3 Tapestry SE 1.000 500 ooIs Avallable October 15, 2004 June 9, 2005 February 13, 2006 15.00 WebWork Books on amazon Spring MVC 11.25 JSF 7.50 WebWork Struts 3.75 22.5 Spring MVC JSF 15.0 7.5 5种框架的编辑工具的支持度 书籍的销售量
Advanced Web Technology 流行的5种框架比较 5种框架的编辑工具的支持度 职位的需求数量 书籍的销售量
Advanced Web Technology 基于 Struts的MvC模型 Struts Struts是由 apache2000年启动的一个J2 EE framework,是基于J2E Mode12的一种J2E架构。很好的实现了MC模型 Event Controller Dispatch Business Logic Http Servlet Acton Request Client Forward struts-config xml Browser Update View Get Model Http SP <Taa> Appli cation State spo
Advanced Web Technology 基于Struts的MVC模型 2 Struts是由apache2000年启动的一个J2EE framework,是基于J2EE Model2的一种J2EE架构。很好的实现了MVC模型 Struts
Advanced Web Technology 基于 Struts的MvC模型 Decide“ How to do The Model portion of an MVC-based system can be subdivided into concepts- the internal state of the system, and the actions that can be taken to change Decide“ What to that state see The View portion of a Struts-based application is generall constructed using Java Server Pages(JSP)technology. JSP pages can contain static HTML (or XML) text called"template text ", plus the ability to insert dynamic content based on the interpretation(at page request time) of special action tags Decide The Controller portion of the application is focused on What to do” receiving requests from the client (typically a user running a web browser), deciding what business logic function is to be performed, and then delegating responsibility for producing the next phase of the user interface to an appropriate View component
Advanced Web Technology 基于Struts的MVC模型 The Model portion of an MVC-based system can be subdivided into concepts -- the internal state of the system, and the actions that can be taken to change that state. The View portion of a Struts-based application is generally constructed using JavaServer Pages (JSP) technology. JSP pages can contain static HTML (or XML) text called "template text", plus the ability to insert dynamic content based on the interpretation (at page request time) of special action tags. The Controller portion of the application is focused on receiving requests from the client (typically a user running a web browser), deciding what business logic function is to be performed, and then delegating responsibility for producing the next phase of the user interface to an appropriate View component. Decide “How to do” Decide “What to see” Decide “What to do
Advanced Web Technology 基于 Struts的MvC模型 模型( The mode) 在 Struts中,系统的状态主要由 Actiom Form bean体现,对于业务逻辑 通常由 JavaBean或EJB组件来实现。 视图( The view) Struts框架中视图组件对应于一个简单的JSP文件,这个JSP文件包含了 Struts定义的标签 控制器( The Controller) 由 org. apache. struts action Action Serve这个 servlet充当 把请求委派到指定的 Action类(用户扩展自 org. apache struts action)
Advanced Web Technology 基于Struts的MVC模型 ▪ 模型(The Model) - 在Struts中,系统的状态主要由ActiomForm Bean体现,对于业务逻辑 通常由JavaBean或EJB组件来实现。 ▪ 视图(The View) - Struts框架中视图组件对应于一个简单的JSP文件,这个JSP文件包含了 Struts定义的标签 ▪ 控制器(The Controller) - 由org.apache.struts.action.ActionServlet这个servlet 充当 - 把请求委派到指定的Action类(用户扩展自org.apache.struts.action)