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.