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!