Home  >  Article  >  Web Front-end  >  Are jsp and javascript the same thing?

Are jsp and javascript the same thing?

醉折花枝作酒筹
醉折花枝作酒筹Original
2021-06-10 11:31:226555browse

JAVASCRIPT and JSP are not the same thing. JavaScript language can be embedded in HTML files and can respond to user demand events without transmitting data back and forth; JSP is a dynamic web technology standard that provides an interface for the entire server-side JAVA library unit to serve HTTP applications.

Are jsp and javascript the same thing?

The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.

JAVASCRIPT and JSP are not the same thing

1. JAVASCRIPT

JavaScript is a new description language that can be clamped HTML file. Through JavaScript, it is possible to respond to user demand events (such as form input) without transmitting data back and forth over any network. Therefore, when a user enters a piece of data, it does not need to be passed to the server. ) processing and then passing it back can be directly processed by the client application.

You can also imagine that there is an executable program running on your client! There are already some programs written on the Internet that you can check out. Here are some examples of calculators on Nescape.

JavaScript and Java are very similar, but they are not the same! Java is a much more complex programming language than JavaScript, while JavaScript is a fairly easy language to understand. JavaScript authors can be less focused on programming skills, so many Java features are not supported in Java Script.

2. JSP

JSP (Java Server Pages) is a dynamic web page technology standard initiated by Sun Microsystems and established by many companies. JSP technology uses JAVA language as the scripting language. JSP web pages provide an interface for the entire server-side JAVA library unit to serve HTTP applications.

Add Java program fragments (Scriptlet) and JSP tags (tags) to traditional web page HTML files (*.htm, *.html) to form a JSP web page (*.jsp). When the web server encounters a request to access a JSP web page, it first executes the program fragment and then returns the execution result to the client in HTML format.

Program fragments can operate databases, redirect web pages, send emails, etc. This is the function required to build a dynamic website. All program operations are executed on the server side, and only the results are sent to the client on the network. The requirements for the client's browser are minimal, and it can be implemented without Plugin, without ActiveX, without Java Applet, or even without Frame.

Advantages of JSP:

The update of the user interface is actually performed by the Web Server, so it feels like the update is very fast.

All applications are server-based, so they can always stay up to date.

The client interface is not very cumbersome and is easy to deploy, maintain and modify for various applications.

[Recommended learning: javascript advanced tutorial]

The above is the detailed content of Are jsp and javascript the same thing?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn