JSP (2) -- The First JSP

Source: Internet
Author: User

First JSP

In fact, JSP simply places Java in an HTML webpage. You can change the extension name of an existing HTML webpage from "".html" to ". jsp", which is the best way to create the first JSP.

You can change the extension name of the workbook from example .html to. jsp ". Then, load the new file in the browser, that is, the file with the extension ". jsp.

At this time, you can see the output, but it takes a longer time. This only happens when you load it for the first time. If you load it again, the speed will be normal.

What happened? It turns out that your JSP is converted into a Java file and compiled and loaded. Compilation is only performed once, so it takes a little longer to load for the first time. It turns out to be spent on compilation. In the second load, it no longer needs to be compiled, so the loading speed of the server returns to normal. It should be noted that when HTML files are converted into JSP files, they must be re-compiled.

Of course, it is useless to compile an HTML webpage and convert it into a file with the. jsp extension. In the following tutorial, you will learn something to make JSP useful.

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.