Development model of Java Development web __HTML5

Source: Internet
Author: User
Tags aop
Several development modes of Java Development web

1.

Jsp+javabean Development Mode:

Characteristic: This mode separates the business logic from the page performance, and increases the debugging and maintainability of the program to some extent.
Disadvantage: The page will control and display in a set.
Conclusion: simple, suitable for the rapid construction and operation of small projects.

2.

Jsp+servlet+javabean Development Mode:
Features: JSP as a view to represent the page; The servlet acts as a controller, processes the control program, and invokes the business for processing; JavaBean encapsulates the business logic. Follows the MVC design pattern.
Disadvantage: No unified development framework leads to long development cycles.

3.

Struts Development Program:
Features: A mature MVC development framework.
Composition: Controller: Actionservlet components: The central controller of the struts framework.
Requestprocessor component: The request processor that each child module has.
Action component: A business agent that invokes the model for a specific business logic processing.
Views: mainly composed of JSP pages
Also included are HTML documents, standard tag libraries (JSTL), and struts tag libraries;
JavaScript scripts and CSS styles;
multimedia files;
A message resource file;
Actionform class.
Patterns: Other model builds are typically used in structs to implement business logic.
such as: JavaBean technology, EJB Technology, hibernates design mode.
Conclusion: For some large projects, the struts framework will improve the development efficiency and have great benefit to the later maintenance.

4.

Spring Development Scenario:

Features: With IOC and AOP based on two advanced technologies, the perfect simplification of enterprise-level development complexity,
is an ideal Web application framework.
Composition: The core module: the implementation of the IOC model, including Beanfactory class is responsible for JavaBean configuration and management.
Context module: Inheriting Beanfactory class,
Added features such as event handling, internationalization, resource loading, transparent loading, and data validation.
Provides frame-style bean access and many enterprise-class features.
such as: Jndi access, support EJB, remote invocation, inheritance template framework, e-mail and scheduled task scheduling.
AOP module: Provides an AOP framework written in the standard Java language,
Lets your application throw away the complexities of EJB, but it has the key features of traditional EJBS.
DAO Module: Provides the abstraction layer of JDBC and provides support for declarative things and programmatic transactions.
Web module: Based on the context module, provides the context of the servlet listener and Web application.
Provides integration for existing web frameworks such as JSF, Tapestry, struts, and so on.
O/R Mapping module: provides support for existing ORM frameworks such as Hibernate.
The Spring MVC framework: Built on core modules, tailored to multiple views, template technologies, internationalization, and validation services,
Realize clear separation of control logic and business logic.

5.

Struts+hibernate Development Program:
Features: Using the MVC design pattern of struts and the development scheme of Hibernate persistent object.

6.

Struts+spring+hibernate Development Program: (more commonly used, popular)
Features: Struts is responsible for the presentation layer,
Spring is responsible for the business of the logical layer,
Hibernate the operation of the database in the persistence layer, which consists of the development scheme.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.