The difference between Java, JavaScript, JS, JSP

Source: Internet
Author: User

Javascript==js

JS is a scripting language, in HTML, CSS management location, HTML supervisor content, and JS Supervisor action, reduce the background of the operation, can be very simple to implement the input data validation. For example, when registering, using the Ajax in JS to the background to verify that the user name has been registered, the verification code is correct or used to implement asynchronous update, to provide users with a better experience. Use jquery to verify the legality of the password, enter the password and confirm the password is the same, so as to feed back to the HTML page, you can manipulate the CSS or HTML page content to confirm the error of the input content. But Ajax and jquery are a library of JS.

js!=jsp

JS (JavaScript) JSP (Java Server Pages)
In the past in the understanding of the inside saw a quite classic answer, JS and JSP relationship is Lei Feng and Leifeng Pagoda relationship. In this sentence, it can be seen that they have no connection, and in fact it is. JSP can actually be seen as a scripting language that needs to be compiled with a servlet, but it is quite powerful as a scripting language, where Java code can be embedded, and almost all Java classes can be used in JSPs. In fact, it is possible to use JSP as HTML to display as a Web page, and it can also be nested in the Java language, but also nested other languages similar, of course, the preamble is compiled with the servlet implementation. JSP as a bytecode file can be run directly after execution, do not have to compile every time, fast. Maybe I say a little bit of a problem, but JSP and JS are mostly used in the writing of Web pages, JSP can be regarded as the combination of HTML and Java, of course, JS can be implemented in the JSP some action, special effects, verification function, and in the HTML to achieve the same effect. Because the JSP is executed on the server side, the server executes the converted. Class program, and the client receives only the HTML code from the server and does not see the JSP code. And JS can be displayed in the client by viewing the source code.

Java, JSP

Java is a programming language, JSP is just equivalent to the servlet part of Java

After words

Remember the beginning of the development of the site, one of my seniors called me to see the JSP, and then I used one weeks to see JS, I thought JS is JSP, and then JJ, JavaScript and JSP is not bad, so do a lot of no work, more go should not go detours, But then two things were used, and the use was very large. Important thing to say three times, js! =jsp,js! =jsp,js! =jsp.
Js==javascript
Jsp==java Server Pages

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The difference between Java, JavaScript, JS, JSP

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.