Differences between JavaScript and JSP

Source: Internet
Author: User

1. Javascript
Javascript is a new description language that can be written into HTML files. Javascript can be used to respond to user request events (such as form input) without any network to transmit data back and forth. Therefore, when a user inputs a data item, it can be directly processed by client applications without being transferred to the server for processing. You can also think of an executable program running on your client! You can connect to some programs written on the Internet. Here are some examples of calculators in nescape. JavaScript and Java are very similar, but they are not the same! Java is a program language that is much more complex than JavaScript, while Javascript is quite easy to understand. Javascript creators can focus less on program skills, so many Java features are not supported in Java Script.

2, JSP
JSP (Java Server Pages) is a dynamic web page technical standard proposed by Sun Microsystems and jointly established by many companies. JSP technology uses Java as the scripting language. JSP web pages provide an interface for the Java Library Unit on the server to serve HTTP applications. In the traditional web page HTML file (*. htm ,*. java program snippets (scriptlet) and JSP tags are added to HTML to form a JSP webpage (*. JSP ). When the Web server encounters a request to access the JSP webpage, it first executes the program fragment and then returns the execution result to the customer in HTML format. Program snippets can operate databases, redirect webpages, and send emails. This is the function required to build a dynamic website. All program operations are performed on the server, and the results are only obtained after the network is uploaded to the client. The client has the lowest requirements on the client browser and can implement no plugin, no ActiveX, and no Java applet, no frame.

Advantages of JSP:

· Updates to the user interface are actually performed by the Web server, so it gives people the feeling that the updates are fast.
· All applications are server-based, so they can always be updated to the latest version.

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.