Comparison of JSP and JS __js

Source: Internet
Author: User


Simply put,--js is performed on the client and requires a browser to support JavaScript. The JSP is executed on the server side and requires a server program on the server that supports the servlet. JS code is able to directly from the server download get, externally is visible, JSP (and translated servlet) code is externally invisible. JSP is compared to javascript: Although JavaScript can dynamically generate HTML on the client side, it is difficult to interact with the server and therefore cannot provide complex services, such as access to databases and image processing, and so on. JSP is implemented in <%%> inside HTML. JS is implemented in HTML with <Script></Script>.


jsp with PHP, ASP, ASP. NET and other languages similar to the language running on the server side. The JSP (the full name Java Server Pages) is created by Sun Microsystems, a company that enables software developers to respond to client requests and dynamically generate HTML, Technical standards for Web pages of XML or other format documents. JSP Technology is in the Java language as a scripting language, and JSP Web pages provide an interface for the entire server-side Java Library Unit to serve HTTP applications. The jsp file suffix is named (*.jsp). Web applications developed by the JSP can be used across platforms, running both on Linux and on Windows. The advantages of the
JSP are listed below for additional benefits from using JSP: compared to asp: JSP has two major advantages. First, the dynamic part is written in Java, not VB or other MS-specific language, so it is more powerful and easy to use. The 2nd is that JSP is easy to migrate to the non-MS platform. compared to pure servlets: JSP can easily write or modify HTML pages without having to face a large number of println statements. is compared to SSI: SSI cannot use form data and cannot make database links. compared to javascript: Although JavaScript can dynamically generate HTML on the client side, it is difficult to interact with the server and therefore cannot provide complex services, such as access to databases and image processing, and so on. compared to static HTML: Static HTML does not contain dynamic information.

Simply put,--js is performed on the client and requires a browser to support JavaScript. The JSP is executed on the server side and requires a server program on the server that supports the servlet. JS code is able to directly from the server download get, externally is visible, JSP (and translated servlet) code is externally invisible. JSP is compared to javascript: Although JavaScript can dynamically generate HTML on the client side, it is difficult to interact with the server and therefore cannot provide complex services, such as access to databases and image processing, and so on. JSP is implemented in <%%> inside HTML. JS <Script></Script> implementation in HTML

Overall Java is a programming language for the background, JSP and JavaScript are used for foreground page programming


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.