The difference between JSP (Java Server Pages) and JS (JavaScript):

Source: Internet
Author: User
Tags app service

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):

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.