JSP + JavaBean Development Mode:
Features: This mode separates the business logic from the page performance, and increases the program's debuggable and maintainability to a certain extent.
Disadvantage: The page combines control and display.
Conclusion: It is simple and suitable for the rapid construction and operation of small projects.
JSP + servlet + JavaBean Development Mode:
Features: JSP acts as a view to display pages. servlet acts as a controller, controls the process of the program and calls the business for processing. JavaBean encapsulates the business logic. Follows the MVC design pattern.
Disadvantage: lack of a unified development framework leads to a long development cycle.
Struts development solution:
Features: Mature MVC development framework.
Composition: Controller: actionservlet component: central controller of the Struts framework.
Requestprocessor component: the request processor that each sub-module has.
Action component: Business proxy, which calls the model for a specific business logic processing.
View: consists of JSP pages.
It also includes HTML documents, standard tag Library (jstl), and Struts tag library;
JavaScript scripts and CSS styles;
Multimedia files;
Message resource file;
Actionform class.
Mode: other models are usually used in structs to build business logic.
For example, JavaBean technology, EJB technology, and hibernates design pattern.
Conclusion: for some large projects, the Struts framework will improve the development efficiency and improve the later maintenance.
Spring development solution:
Features: it is based on two advanced technologies: IOC and AOP, which perfectly simplifies the complexity of enterprise-level development,
Is an ideal web application framework.
Composition: Core Module: implements the IOC mode. The beanfactory class is responsible for configuring and managing the JavaBean.
Context module: inherits the beanfactory class,
Added functions such as event processing, internationalization, resource loading, transparent loading, and data verification,
It provides a framed bean access method and many enterprise-level functions.
Such as JNDI access, support for EJB, remote call, inheritance template framework, e-mail, and scheduled task scheduling.
AOP module: provides an AOP framework written in standard Java language,
This frees applications from the complexity of EJB, but has key features of traditional EJB.
Dao module: Provides the JDBC abstraction layer and supports declarative and programmatic transactions.
Web module: Based on the context module, the context of the servlet listener and the context of the Web application are provided.
Provides integration for existing web frameworks such as JSF, tapestry, and struts.
O/R ing module: provides support for existing ORM frameworks, such as hibernate.
Spring MVC Framework: built on core modules, it is flexible enough to adapt to a variety of multi-view, template technology, internationalization and verification services,
The control logic and business logic are clearly separated.
Struts + hibernate development solution:
Features: a development scheme consisting of struts MVC design patterns and Hibernate Persistence objects.
Struts + spring + hibernate development solution:
Features: struts is responsible for presentation layer,
Spring is responsible for the business at the logic layer,
A development solution consisting of database operations in the persistence layer of hibernate.
VO (Value Object) value objects are usually used for data transmission between business layers. Like Po, they only contain data. However, it should be an abstract business object, which can correspond to a table or not. This is based on the business needs. I personally think it is the same as DTO (data transmission object) and transmitted on the web. For business objects, see domain objects in the UML component domain model. Java objects that encapsulate the business logic, and perform business operations by calling the DAO method and combining Po and VO. The concept of Po (persistant object) Persistent Object in O/R ing. If there is no o/R ing, there is no such concept. Usually it corresponds to the data model (database), and some business logic is processed. It can be viewed as a Java object mapped to a table in the database. The simplest Po is to correspond to a record in a table in the database. A set of PO can be used for multiple records. The PO should not contain any operations on the database. Thanks http://www.cnblogs.com/wky1680/archive/2013/02/19/2916644.html