ASP + and Java

Source: Internet
Author: User

MicroSoft. the NET strategy will bring computing to the full WEB era. In fact, SUN has prepared Java for the Internet era for a long time, and java has gained extensive support in the industry, currently, many Web applications use java servlet technology. This article will compare ASP + and JAVA in MicroSoft. NET to get a comprehensive understanding of WEB computing. 1. first introduce ASP +
Author: Lenovo business department Li Jianqi


ASP + is MicroSoft. as a strategic product, Microsoft has designed such strategies for ASP +: easy to write clearly structured code, easy to reuse and share code, and can be compiled in compilation languages, the goal is to make it easier for programmers to develop WEB applications and meet the strategic needs of the transfer from computing to WEB.

ASP + Beta1 has been tested since January 1, July 2000. Let's take a look at some of its features.

Supports compiling languages and RunTime, such as VB, VC ++, C #, and <Script language = "Vb" runat = "server">

Compilation languages run faster than script languages, and are more suitable for large-scale applications. MicroSoft. NET supports multi-language mixed programming. Page is compiled at the first load so that the code can be processed at runtime. This is like vb6. The code runs in the virtual environment, similar to the java virtual machine.

WEB Form

ASP + WEB Form provides the same programming habits as VB Form, which can trigger server-side events. Web control can be configured in web form.

Page Events

ASP + is designed as object oriented, and Page object is the top object. Web control, application, and custom page are inherited from page object. The Page object has events such as OnLoad.

Web Controls

ASP + provides 5 types of Web controls:

Control corresponding to the FORM element in HTML, such as button and text

List control, such as Repeater, DataList, DataGrid,

Rich Control

Validation Controls

Mobile Controls, which provides WML for WAP devices.

Develop Web Services

Web Services allows the system to output functions to the Web. The output method is URIs. After the function is called, XML is returned.

For example:

<% @ WebService Language = "c #" %>

Using system. web. services;

Public class Shipping {

[Webmethod]

Public string OrderStatus (string OrderNumber ){

// Code

}

}

Call: http: // orders/tracking. asmx/OrderStatus? OrderNumber = BRU123

Call protocols can be used with HTTP-GET, HTTP-POST, HTTP-SOAP.

Web Service integrates WEB systems and provides a good framework for WEB-based distributed computing.

Caching Improvement

ASP + provides cache APIs, allowing programmers to control the use of Cache. In some cases, developers can write applications with better performance.

Debugging and Tracing

ASP + Built-in Debugger supports multi-language mixed programming and can debug programs like in VB. Added Trace and profiler functions.

Separating code from HTML templates

The code can be placed in the class module.

The benefits of separation allow programmers to work independently with page makers and facilitate code sharing.

Library

Modular support is essential for compiling large-scale applications, and ASP + provides excellent modular support. Provides common libraries, such as SMTP SendMail, and structured code organization methods, such

<% @ Import NameSpace = "system. asp. util" %> references the util package.

Configuration and implementation

ASP + configuration information is stored in an XML file, rather than in the registry. To implement ASP + applications, you only need to copy the program to a directory without registering any objects. Because sometimes Registration requires the original service STOP, and a series of problems. This is really good.

ASP + supports the running of compiled programs to protect technical secrets.

Throughout the introduction of the above features, ASP + has improved a lot of ASP problems. For programmers familiar with VB, VC or other traditional development platforms, ASP + provides the same platform for developing Web applications, it can be said that ASP is based on scripts, while ASP + is based on the complete OO programming idea. ASP + supports WEB services, making Web Application Integration very convenient.


2. Comparison with JAVA
Author: Lenovo business department Li Jianqi


JAVA, by chance, has become the main language of Web computing and has gained extensive industry support. It is potabale, a good oo attribute, and a powerful adhesive for Internet-based computing. The following two aspects observe the difference between java and Microsoft's solution.

Industry Support

The "e-business application framework" of IBM is structured in Java, xml, corba, and IBM, and WebSphere is used as a web development tool. Ibm believes that there are several principles for selecting the application framework: relying on specific platforms, built on industrial standards, most of the computing is placed on the server side, scalable, and so on.

Due to the wide support of Oracle, sybase, and other industry vendors, java is a de facto industrial standard for web computing. Java package is also enriched to support the development of various applications.

Development Model

Most software vendors in China chose java when migrating to Web computing, such as core securities and exchange systems, yonyou financial systems, and North-South financial software. The core software and the North-South financial system use applet to develop the client interface, which is no different from the traditional software.

It can be said that the current use of html development interface complex applications is not very suitable, this is the reason for choosing java applet. After ASP + is developed, it is much easier to develop complicated server-based applications.

Currently, the application of applet is used to store a lot of computing logic on the client. This method is not the way for future computing to concentrate on the server. Maybe java will launch a new package to support such applications.

On the server side, java uses servlet and java bean, and ASP uses scripts and com components. The current computing mode is similar.

The web service integration method mentioned in ASP +. Currently, Microsoft is pushing SOAP and UDDI. However, we recommend that you become w3c standards and not rely on specific platforms.

From the above observations on industry support and development models, we can say that java is now more suitable for a wide range of web computing. At the same time, we are looking forward to the arrival of ASP + and the arrival of better WEB computing models.

     

References:

1. Active Server Pages +: ASP + Improves Web App Deployment, Scalability, Security, and Reliability

------- September 2000 issue, MSDN Magazine

2. Building e-business applications, IBM Solution Developer Program


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.