Differences between html and jsp

Source: Internet
Author: User

Many people mistakenly assume that jsp is another extension name of the webpage file for the following reasons:

The same html data content, whether the extension is jsp or html, can be accessed in tomcat to obtain the same content. In fact, this is a big misunderstanding.

Html files are static data stored on the server compiled by the web page creator. The server simply transmits the static data to the browser, which is similar to an image.

The content in the jsp file is compiled and executed on the virtual machine. The content we see is the result of the calculation. In this regard, jsp is not a Web page, it is a program. Every time we access this program, we execute it once. The "helper" that helps us "compile and run" is tomcat.

The JSP content we wrote is to satisfy tomcat's appetite, so that it can help us. If it does not meet its appetite, it will complain, A "500 error" is displayed during access ".

 

In the future, we will learn about jsp. In fact, we will learn about the specification of JSP that tomcat is fond of.) so that it will listen to your words and work for you.

In fact, this is a very sensible cat. It provides a lot of convenience for you to compile jsp, and it provides you with a lot of "objects ), we should have known an object named "out" and an object named "request". Remember that this is a good thing for you and must be used properly, there are still seven objects we are not in touch with. When we know how to use these objects, this cat will work very well for you!

 

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.