Java EE development Model (brief)

Source: Internet
Author: User

Java EE Development mode 1. What is a pattern

Model in the development process summed up the "routines", summed up a set of conventional design patterns

2. Patterns experienced by Java EE

Model1 mode:

Technical composition: Jsp+javabean

Disadvantages of Model1: JSP pages are confusing as business complexity results

Model2 mode

Technical composition: Jsp+servlet+javabean

Advantages of Model2: the use of various technologies to excel in development

Servlet: Good at handling Java business code

JSP: Good at the reality of the page

MVC:----Design patterns for web development

M:model---Model JavaBean: encapsulating data

V:view-----View JSP: Simply display the page

C:controller----Controller Servelt: Get data--encapsulate data--pass data--Assign the displayed JSP page

3. Java EE three-tier architecture

Server development is divided into three tiers

Web tier: Interacting with clients

Service layer: Complex business processing

DAO Layer: Interacting with a database

The three-tier architecture is embodied through the package structure in the development practice

What does MVC have to do with the three-tier architecture?

Think about the three-tier architecture diagram

Summarize:

El expression

Remove data from the domain ${the name of the data stored in the field

${pagecontext.request.contextpath}

JSTL tags (core library)

<%@ taglib uri= "" prefix= "C"%>

<c:if test= "" >

<c:foreach items= "Array or collection" var= "array or every element in the collection" >

Java EE three layer architecture +MVC

Web layer: Collect page data, encapsulate data, pass data, specify response JSP page

Service layer: Writing of logical business code

DAO Layer: Writing access code for a database

Java EE development Model (brief)

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.