Introduction to JSP (Java EE) technology

Source: Internet
Author: User
Tags php and
J2ee|js JSP is the Java server page,j2ee Java 2 Enterprise eidtion, which is a server-side programming technology built on the Java language by Sun, which is simply a technique for dynamically generating web pages, Now the main opponent is Microsoft's main push asp.net.

JSP should be part of the Java EE, JSP is used to dynamically generate Web pages, The suffix of the JSP file is. jsp, like PHP and other technologies, people are used to naming this technology in file suffixes, and in fact, most (and all) of the database operations and a large part of the complex business logic are implemented in JavaBean (typically Java Java using EJB) or in other classes, so based on the web J2 EE, the Web page suffix of the website is. JSP. If the display of a Web page is likened to writing on paper with a pen, the ideal Java-EE site should be the function of the various parts should be: JSP is the pen coat (it is only auxiliary pen core, write words), JavaBean and EJB is the core (they are the heart of the site, users can not see them, The "pen core" determines what color the written word is, good-looking not good-looking, writing is fluent, that is, they determine the entire site's function, whether stable, efficient, whether it is safe, etc., network and server software is paper, "paper" good-looking on the comfortable, that is, the Web page shows fast. Of course, this analogy is not very appropriate, the various parts of the Java EE are closely linked together, simple JSP can not rely on JavaBean or EJB to connect the database and deal with business logic, only that inefficient and can not play Java reusable advantages. In fact, as you all know, a Java program to run, you must be compiled to generate. class file, from this point, JSP,SERVLET,JAVABEAN,EJB (it is very special, need Java Server Special support) they have a unified side.

In fact, the scope of the technology is a very large, I just touched a point, even a complete EJB did not write (general machine can not bring up Java server), EJB is the most core technology java. The advantage of EJB is that it is supported by the Java server (all Java EE servers must support EJB features, most notably Bea's WebLogic and IBM's WebSphere) to achieve complex processing in the simplest way, such as transaction, distributed deployment, etc. and entity beans, message beans, session beans (name may be mistaken, hehe) Three kinds of EJB each have "Avatar". It can be said that EJB can achieve advanced complex function with simple code because it stands on the shoulder of the Java-EE server. A good EJB can be sold as a commercial software.


Based on the asp.net of the site's filename suffix is generally aspx, oh, did not carefully studied, will not say more.


Related Article

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.