A comparison between JSP and ASP for Dynamic Web page making technology

Source: Internet
Author: User
Tags object comparison iis implement odbc object model access microsoft iis
js| Comparison | dynamic | Web |JS in general, Javasever Pagestm (JSP) and Microsoft's Active Sever pages (ASP) have many similarities in technology. Both are technical environment support for dynamic Interactive Web page making based on Web application. To the same extent, both can provide program developers with the technology of implementing application programming and designing Web pages with self-contained components. And both can replace CGI to make Web site construction and development of more simple and fast.

Although Javasever pages technology and Microsoft's active Sever pages are similar in many respects, but there are still many differences, the most essential difference is: The two are derived from different technical specifications of the Organization, its implementation of the basis: the Web server platform requirements are not the same.

First, JSP technology: Open Technology

The obvious difference between JSP and ASP technology is that developers have different ways of understanding the design of their respective software systems. JSP technology based on platform and server independent of each other, input support from a wide range of specialized, various toolkit, server components and database product developers to provide. By contrast, ASP technology relies primarily on Microsoft's technical support.

1. Platform and server independence

JSP technology is attached to one write, and can then run in any environment that conforms to the JAVATM grammatical structure. Instead of being attached to a single platform or developer, JSP technology can run on any Web server and support a wide variety of toolkits from multiple developers.

Because ASPs provide client and server-side development components based on ActiveX control Technology, ASP technology is essentially confined to Microsoft's operating system platform. ASP's main working environment is Microsoft's IIS application architecture, and because ActiveX objects have platform features, ASP technology cannot easily implement the work on Cross-platform Web servers. Although ASP technology enables Cross-platform applications of components and services through Third-party-provided products, ActiveX objects must be placed in advance on the platform of Choice.

2, open the development process, open the original code

Sun applies Java Community process to develop JSP technology. Since 1995, Sun has developed and modified Java technologies and specifications in collaboration with the International Java organization in this open process approach. For JSP products, Sun has licensed tool providers (such as Macromedia), allied companies (such as Apache,netscape), end-users, collaborators and others. Most recently, Sun released the original code from the latest version of JSP and the JAVATM servlet (JSP 1.1,java servlet 2.2) to Apache for JSP to develop closely with Apache. Apache,sun and many other companies and individuals openly set up a robust advisory body for free access to information by any company or individual. (For details: http://jakarta.apache.org)

The JSP Application Interface (API) has undoubtedly been successful and will continue to be perfected as the Java organization continues to open up and expand. Instead, the ASP technology relies only on Microsoft itself, whose development is based on an exclusive, closed development process.

ASP Technology JSP Technology
Web server Microsoft IIS or personal Web server any Web server includes Apache,netscape, and IIS
Operating system platform Microsoft's Windows system, the vast majority of popular platforms, including the Solaris operating system, Microsoft Windows, MAC Os,linux, and other UNIX series platform products
Cross-platform access requires the introduction of Third-party ASP product Support Web information organization the different series of computer groups in the environment ensures users ' investment in current hardware and software and human resources is fully compatible, JSP technology provides flexible, open choice: You can use a variety of tool providers to provide tools, High embodiment of industrialization standard input and configuration
3. From a developer's perspective: ASP and JSP technology enables developers to implement interactive, dynamic content and application Web sites by clicking on components in a Web page. ASP supports only Component Object Model COM, and the components provided by JSP technology are based on JAVABEANSTM technology or JSP tag library. It can be seen that there are similarities, but the difference is obvious.

1) JSP Tag Extensibility

Although both ASP and JSP use tag and scripting technology to make Dynamic Web pages, JSP technology enables developers to extend the application of JSP tags, JSP developers can customize the tag library, so web page makers make full use of XML-compatible tagging technology powerful features, greatly reduce the reliance on scripting language. Because of custom label technology, Web page makers reduce the complexity of making web pages and expanding key functions to multiple pages.

2 The reusability of JSP Cross-platform

Developers of JSP have been focused on reusability during the development process. JSP components (Enterprise Javabeanstm,javabeans, or custom JSP tags) are cross-platform reusable. Enterprise JavaBeans components can access traditional databases and work in Distributed System mode on UNIX and Windows platforms. The tag extensibility feature of JSP technology provides developers with a simple, XML-compliant interface, the packaged feature of shared Web pages, that makes them fully industrial-standard.

This component-based pattern is an effective way to improve application development because it enables developers to quickly create template applications using shortcut subcomponents, and then consolidate some additional functionality for later use. An effective method like this is ubiquitous in JSP and can be packaged into a javabean or an industry-standardized JavaBean component.

Second, the advantages of Java

JSP technology is in the Java language as a scripting language, and ASP Web pages using Microsoft's Vbscrip or Jscrip. Java is a mature, powerful, and extensible programming language, much better than a basic scripting language. For example, Java executables are superior to VBScript or JScript languages. Because they use Java technology and are compiled into Java servlets,jsp Web pages provide an interface for the entire server-side Java Library Unit to serve HTTP applications.

Java makes it easier and simpler for developers to work in other ways as well. For example, when an ASP application is suspected of crashing on a Windows NT system, Java can effectively prevent the system from crashing. The Java language can also be used in memory management by providing a way to prevent memory leaks. In addition, JSP provides a robust contingency handling mechanism for applications.

1, easy to maintain

JSP technology-based applications are easier to maintain and manage than ASP based applications.

Scripting languages are good at serving small applications, but not for large, complex applications. Because Java is structured, it is easier to create and maintain large, modular applications.

JSP-highlighted component technology makes it easy to modify content without affecting logic or modifying logic without affecting content.

The Enterprise-Class JavaBeans architecture consolidates enterprise logic, such as database access, security, transactional integrity, and independence, which is independent of the application.

Because JSP technology is an open, cross-platform structure, Web servers, platforms, and other components can easily be upgraded or switched without impacting JSP base applications. This feature enables JSP to adapt to the constant changes and development of the various Web applications in the real world.

ASP Technology JSP Technology
Reusable, Cross-platform components without JavaBeans Enterprise-class JavaBeans, custom JSP tags
Security: Prevent system crashes without
Memory leak protection does not have
scripting language Vbscript,jscript JAVA
Custom Label does not have
2, the diversity of enterprise products

The JAVA2 platform, the Enterprise Edition (Java ee), is a java-based architecture for multiple enterprise applications, and as part of the EE section, the JSP Web page has access to all the components of Java EE, including JavaBeans, Enterprise-Class JavaBeans, and Java servlets. JSP pages can be fully compiled into servlets, so they all have the features of flexibility and for server-side Java applications. The Java platform content includes not only managing complex enterprise applications but also transaction management technology and pooling resource management technology.

JSP pages can access the standard Java EE services, including:

? Java name and directory interface APIs

? JDBCTM API (communication with associated database)

? JAVAMAILTM (supports classes based on Java mail and messaging applications)

? JAVATM Messaging Service

J2EE,JSP Web pages enable interactive access to enterprise systems in many ways. Java EE supports two techniques for CORBA specification: The java-based IDL and the RMI-IIOP. With the support of enterprise-class JavaBeans technology, JSP Web pages Access databases by using advanced, Object-mapped methods.

Ultimately, because JSP technology is a product of the open process based on Java, it can support the services of tools, Web servers, and applications provided by different providers, enabling users to choose the best development method, choose the toolkit that best fits their application development, and Effectively protects users ' investment in code and personnel training.

ASP Technology JSP Technology
Compatible with traditional databases (COM) can (with the JDBC API)
The ability to integrate data sources can work in any ODBC-compliant database to work in any ODBC-compliant database, and access to compliant JDBC Technical specification databases
Component COM Component JAVABEANS, Enterprise-class JAVABEANS or extended JSP tags
Extension tools support There are

Author: Mr Chen of computer Department of Henan Financial Management Cadre College



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.