Some basic knowledge about JSP and J2EE

Source: Internet
Author: User
Tags mysql manual

Introduction to JSP and J2EE

JSP is a Java Server Page and J2EE is a Java 2 Enterprise Eidtion. It is a Server-side Programming Technology established by Sun on the Java language. To put it simply, it is a technology used to dynamically generate Web pages. Its main competitor is Microsoft's main ASP.. NET.

Relationship between JSP and J2EE

JSP should be part of J2EE. JSP is only used to dynamically generate Web pages. The suffix of jsp files is. jsp, like php and other technologies, people are used to naming the technology by file suffix, most of which can be said to be all) the database operations and a large part of the complex business logic are implemented in the typical J2EE of JavaBean using ejbs) or other Java classes, so on the Internet based on J2EE, the website suffix is. jsp. If we compare displaying a webpage to writing on paper with a pen, the ideal J2EE website should have the following functions: JSP is the pen coat, it is only the secondary pen core, write words), JavaBean and EJB are the pen core, they are the core of the website, users can not see them, the "Refill" determines the color of the written words, whether the words are good-looking or fluent, that is, whether they determine the functions, stability, and efficiency of the entire website, is it safe?), the network and server software are paper, and the "paper" looks nice and comfortable, that is, the web page shows fast ). Of course, this metaphor is not very appropriate. All parts of J2EE are closely linked. JSP alone can also connect to the database and process business logic without using JavaBean or EJB, it's just that the efficiency is very low and it cannot take advantage of Java's reusable advantages. As we all know, to run a Java program, it must be compiled and generated. class files. From this point of view, JSP, Servlet, JavaBean, and EJB are special and require special support from the J2EE server.

Technical scope of JSP and J2EE

In fact, the scope of J2EE technology is very large, and EJB is the core technology of J2EE. The advantage of EJB is that it supports all J2EE servers through the J2EE server and must support the characteristics of EJB. The most famous is BEA's WebLogic and IBM's WebSphere ), it implements complex processing such as transactions and distributed deployment in the simplest way, and the names of entity beans, message beans, and session beans may be wrong.) The three ejbs have their own "magical powers ". It can be said that the reason why EJB can implement advanced and complex functions with simple code is that it stands on the shoulders of the J2EE server. Good ejbs can be sold as commercial software.

Basically, JSP is used to generate webpage documents with changeable content on the www server and process the form data submitted by the user. For example, when the message content is displayed, the message content is always increasing, therefore, the content of the webpage file passed to the user's browser needs to be changed, which is implemented by jsp. It is also implemented by JSP to insert user messages into the database. J2EE is used to develop large-scale commercial systems. For example, you need to transfer money, deposits, and funds between different banks, perform deposit and withdrawal record operations, and perform security checks, no one can check the account, but also consider network disconnection and other issues.

  1. Three considerations for choosing a JSP website Space
  2. A simple JSP dynamic website running environment
  3. Solution to Chinese garbled JSP found in MySQL Manual
  4. JSP Chinese garbled Problem description and Solution
  5. Example Description: how to print a report using JSP

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.