jsp source code refers to the source code of the jsp file; if we have the JSP source code, it is equivalent to having a dynamic page that can be directly used by the back-end program written in Java; the website source code refers to the uncompiled Text code or all source code files of the website.
JSP is a dynamic page, so of course its code is dynamic source code. Before understanding the source code, you must first understand what the website source code is.
Website source code, also known as source code, source program. It refers to uncompiled text code or all source code files of a website, which is a series of human-readable computer language instructions. We can understand it as source code. As for the webpage we are currently seeing, it is actually composed of a lot of source code. Through our browser (such as Microsoft's IE browser, Google's Chrome browser, etc.) Or the server translates it into what we see.
1. Literally speaking, a source file refers to a file and a collection of source code. Source code is a set of characters (program development code) with specific meanings that can achieve specific functions.
2. "Source code" is equal to "source file" most of the time
3. The source code of a website can be constructed into a web page or a website.
4. The simplest understanding is the source program of the website.
"For example, right-click on this webpage and select View Source File. A notepad will come out. The content inside is the source code of this webpage." This sentence reflects their relationship. The source here The file refers to the source code of the web page, and the source code is the content of the source file, so it can also be called the source code of the web page.
Website source code is also divided into two types, one is dynamic source code such as: ASP, PHP, JSP, .NET, CGI, etc., and the other is static source code such as: HTML, etc.
Dynamic source code
Programs, web pages, and components running on the server side are dynamic web pages. They will return different web pages with different customers and at different times, such as ASP, PHP, JSP, NET, CGI, etc.
The biggest feature is the ability to interact with users. For example, in NetEase's mailbox, when Zhang San logs in, he will see Welcome to Zhang San, Li Si logs in again, and Li Si sees Welcome to Li Si again. In fact, the two of them log in to the same page. This is the dynamic source code. The advantage is that if you use static source code, it seems that NetEase has millions of email users. How many pages does it take for each person to make a page? Dynamic source code is not only useful for this, for example, some of our common forums, guest books, Counters, chat rooms, etc. are all developed from dynamic source code. The biggest feature of dynamic source code is that it has a database, such as ACCESS, SQL, MYSQL, etc.! The characteristic of this type of website source code is that it has background management. Compared with static source code, this type of website source code is not easy to be included by search engines!
Static source code
Programs, web pages, plug-ins, and components that run on the client are static web pages, such as html pages, Flash, JavaScript, VBScript, etc., they are Never change.
For example, the web page we are currently seeing is a static source code. Static source code cannot achieve the above functions. There is no backend, but it is easily indexed by search engines.
There are many source code download sites. The downloaded source code files are basically incomplete and can only be used as a reference for learning. If you want to use such source code, you must modify it by professional programmers before you can use it. If If you are a website developer, you can go to Taobao to purchase source code. This source code is generally relatively complete. Of course, there are also incomplete ones, but you can build your own website with just a few modifications.
The summary is that JSP source code is a type of dynamic source code. When you own the JSP source code, it is equivalent to having a dynamic page that can be used directly by back-end programs written in Java.
The above is the detailed content of What is jsp source code. For more information, please follow other related articles on the PHP Chinese website!