Java web Layer 3

Source: Internet
Author: User

Javaweb consists of three layers: presentation layer, business layer, and persistence layer;

Jsp is the presentation layer, which collects user operation data and renders the data;

The servlet receives data, calls the service, and redirects to the service;

The service is the business layer. The data in the Receiving Performance layer is transmitted to the persistence layer, and the data in dao is called to be transmitted to the performance layer;

Dao is a persistence layer that receives data from the business layer. It adds, deletes, modifies, and queries the database and transmits the data to util;

Util is connected to the database;

TomCat is the container of jsp and servlet and is responsible for instantiating and calling jsp and servler;

Differences between jsp and servlet:

Jsp: Code does not need to be compiled, does not need to be configured, code snippets

Servlet: requires compilation, configuration, complete Class

This article is from the eSupervise blog, please be sure to keep this source http://jtmal.blog.51cto.com/7842158/1298251

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.