The difference between JSP (Java Server Pages) and JS (JavaScript):
1.JSP is typically used for server-side programming (such as reading databases, updating databases, etc.) although JavaScript can also be used for server-side programming in ASP environments, it is more widely used for client programming, such as many common web effects that are JAVASCRIPT+CSS implemented , and JSP, such as form validation, is embedding dynamic code into static HTML. Thus generating dynamic output the simplest JSP file is to save an HTML file as a. jsp file directly, and then place it in the directory of the Web App service. The role of 2.jsp. The advent of JSP technology, It greatly improves the efficiency of Web application development based on Java technology. He separates the generation and display of content, making web designers and Java programmers less closely connected, and web designers just need to focus on the design of the Web page, while Java programmers can no longer care about HTML writing. By encapsulating the business logic in the JavaBean or
In Enterpjavabean, page designers can design Web pages on the basis of only the relevant output interfaces. The advantage of 3.jsp compared to ASP or PHP is that JSP uses the Java language, which has all the advantages of Java, such as object-oriented, "write once, run everywhere" cross-platform features. 4.JSP, as the design language of dynamic Web pages, is a JSP Web page (*.jsp), which is added as Java program fragment (scriptlet) and JSP tag (tag) in the traditional Web page HTML. It's totally two different things with JavaScript. 5.JSP, launched by Sun, is based on Java technology and is used to create dynamic Web pages that support cross-platform and cross-Web servers. 6.Javascript is the product of Netscape company, much simpler than JSP, Mainly used in the client, the implementation of some browser-based dynamic features, the ability to dynamically generate HTML on the client.
The difference between JSP (Java Server Pages) and JS (JavaScript):