In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to understand ASP.NET and JSP technology. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
JSP is a network programming language developed by SUN, which is difficult to learn (recognized online) and runs across platforms. The security is relatively high, the operation efficiency is also relatively fast. It is widely used by enterprise-level companies and banks and financial institutions.
In a sense, ASP.NET should be an upgrade of the ASP version, but it is not entirely upgraded from ASP. The launch of ASP.NET is to resist the rapid development of SUN's JSP on the network. Many people are learning the .NET architecture, mainly because of the high efficiency of development. However, it is still based on the WIN platform and cannot be cross-platform.
Introduction to JSP
Jsp (JavaServer Pages) is a dynamic web technical standard initiated by Sun Microsystems and established with the participation of many companies. Its URL is http://www.javasoft.com/prodUCts/jsp. This technology provides a simple and fast method for creating Web pages that display dynamically generated content. JSP technology is designed to make it easier and faster to build Web-based applications that can work with a variety of Web servers, application servers, browsers and development tools. The JSP specification is the result of extensive collaboration among Web servers, application servers, trading systems, and development tool vendors. Add Java program fragments (Scriptlet) and JSP tags (tag) to the traditional web page Html file (* 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 fragments, and then returns the execution results to the customer in HTML format. Program fragments can manipulate the database, redirect web pages, send email, and so on, which are the functions needed to build a dynamic website. All program operations are performed on the server side, and only the results are transmitted to the client on the network. The requirements for the client browser * * can achieve no Plugin, no ActiveX, no Java Applet, or even no Frame.
JSP technology accelerates the development of dynamic Web pages in several ways:
1. Separate the generation and display of content
Using JSP technology, Web page developers can use HTML or XML logos to design and format the final page. Use JSP logos or small scripts to generate dynamic content on the page (the content varies according to request, such as requesting account information or the price of a particular bottle of wine). The logic for generating content is encapsulated in identity and JavaBeans components and bundled in small scripts, all of which run on the server side. If the core logic is encapsulated in logos and Beans, then others, such as Web managers and page designers, can edit and use JSP pages without affecting content generation. On the server side, the JSP engine interprets the JSP logo and small scripts, generates the requested content (for example, by accessing JavaBeans components, using JDBCTM technology to access the database, or includes files), and sends the results back to the browser as a HTML (or XML) page. This helps authors protect their code while ensuring the full availability of any HTML-based Web browser.
2. Emphasize reusable components
Most JSP pages rely on reusable, cross-platform components (JavaBeans or Enterprise JavaBeansTM components) to perform the more complex processing required by the application. Developers can share and exchange components that perform common operations, or make them available to more users or customer groups. The component-based approach accelerates the overall development process and allows organizations to balance their existing skills and development efforts to optimize results.
3. Use logo to simplify page development
Web page developers are not all programmers who are familiar with scripting languages. JavaServer Page technology encapsulates many functions that are needed for dynamic content generation in easy-to-use, JSP-related XML identifiers. The standard JSP logo can access and instantiate JavaBeans components, set or retrieve component properties, download Applet, and perform functions that are more difficult to code and time consuming in other ways.
Through the development of customized identification libraries, JSP technology can be extended. In the future, third-party developers and others can create their own identity libraries for common functions. This allows Web page developers to work with familiar tools and artifacts that perform specific functions like identifiers.
JSP technology can be easily integrated into a variety of application architectures to take advantage of existing tools and skills, and extended to support enterprise-level distributed applications. As part of the Java technology family and part of Java 2 (Enterprise Edition Architecture), JSP technology can support highly complex Web-based applications.
Because the built-in scripting language for JSP pages is based on the Java programming language, and all JSP pages are compiled into Java Servlet,JSP pages, it has all the benefits of Java technology, including robust storage management and security. As part of the Java platform, JSP has the characteristics of the Java programming language "write once, run everywhere". As more and more vendors add JSP support to their products, you can use the server and tool of your choice, and changing the tool or server does not affect the current application. When integrated with Java 2 platform, J2EE and Enterprise JavaBean technologies, JSP pages will provide enterprise-class scalability and performance, which is necessary for deploying Web-based applications in virtual enterprises.
4. Technical analysis
Microsoft's ASP technology is also a dynamic web page development technology. JSP and ASP are so similar in form that ASP programmers can recognize them at a glance. However, if you delve deeper, you will find many differences between them, the most important of which are the following three points:
1), JSP is more efficient and secure
ASP is stored in the form of source code and runs in an interpretive way. Every ASP page call needs to interpret the source code, so the running efficiency is not high. In addition, the loophole in IIS has exposed the source programs of many websites, including the website that the author used to develop with ASP, and all the ASP programs have been downloaded. JSP is compiled into bytecode (byte code) before execution, and the bytecode is interpreted and executed by the Java virtual machine (Java Virtual Machine), which is more efficient than the source code interpretation; there is a bytecode Cache mechanism on the server, which can improve the bytecode access efficiency. * it may be a little slower to call a JSP web page because it is compiled into Cache, which will be much faster later. At the same time, JavaBean source programs are unlikely to be downloaded, especially JSP programs can be placed in a private directory.
2), the component (Component) of JSP is more convenient
ASP extends complex functions through COM, such as uploading files, sending email, and separating business processing or complex computing into independent and reusable modules. JSP achieves the same function extension through JavaBean. In terms of development, the development of COM is far more complex and tedious than JavaBean. It is not difficult to learn ASP, but it is not easy to learn to develop COM. JavaBean is much simpler, and you can see from the above examples in this article that it is convenient to develop JavaBean. In terms of maintenance, COM must be registered on the server, and if the COM program is modified, it must be re-registered, or even shut down and restarted. JavaBean does not need to be registered, just put it in the directory included in CLASSPATH. If JavaBean is modified, JSWDK and Tomcat now need to be shut down and rerun (but not shut down), but developers have promised that there is no need to shut down the server in future releases. In addition, JavaBean is a complete OOP, which can easily build a set of reusable object libraries for different business processing functions, such as user rights control, email automatic reply and so on.
3), JSP adapts to a wider platform
ASP is currently available only for NT and IIS. Although there are plug-ins for ChiliSoft under Unix to support ASP, the function of ASP itself is limited and must be expanded through the combination of ASP+COM. COM under Unix is very difficult to implement.
ASP.NET
1. What is ASP.net?
ASP.net is a program architecture based on a common language that can be used by a Web server to build powerful Web applications. ASP.net offers many powerful advantages over the current Web development model.
1) substantial improvement in implementation efficiency
ASP.net is to run programs based on the common language on the server. Unlike the previous ASP real-time interpreter, the program is compiled when it is run on the server, which is of course much better than an one-by-one explanation.
2) tool support for *
The ASP.net framework can be developed using Microsoft (R)'s product Visual Studio.net development environment and edited by WYSIWYG (what you see is what you get). These are only a small part of the support for ASP.net enhanced software.
3) strength and adaptability
Because ASP.net is compiled and run based on the common language, its strength and adaptability can make it run on almost all platforms of Web application developers (so far, I only know that it can only be used on Windows 2000 Server). The basic library of the general language, message mechanism and data interface processing can be seamlessly integrated into the Web application of ASP.net. ASP.net is also independent of the language-independent language, so you can choose a language that suits you best to write your program, or write your program in many languages, which are now supported by C# (a combination of C++ and Java) and VB,Jscript. In the future, the ability of multiple programming languages to work together protects your current COM+-based programs that can be fully ported to ASP.net.
4) simplicity and ease of learning
ASP.net is very simple to run some very common tasks such as form submission client authentication, distribution system and site configuration. For example, the ASP.net page architecture allows you to build your own user interface that is different from the common VB-Like interface. In addition, the common language simplifies development so that combining code into software is as simple as assembling a computer.
5) efficient manageability
ASP.net uses a character-based, hierarchical configuration system that makes it easier to set up your server environment and applications. Because the configuration information is saved in simple text, it is possible that the new settings can be implemented without starting the local administrator tool. This philosophical concept, known as "Zero Local Administration", makes Asp.net application-based development more specific and faster. An ASP.net application is installed on a server system by simply copying some necessary files without a system restart. It's as simple as that.
6) Reliability of multiprocessor environment
ASP.net has been deliberately designed as a development tool that can be used for multiprocessors. It uses special seamless connection technology in multiprocessor environment, which will greatly improve the running speed. Even if your current ASP.net application is developed for a single processor, the future multiprocessor runtime can improve their performance without any changes, but today's ASP can't do that.
7) customization, and scalability
ASP.net is designed with modules that allow website developers to define "plug-in" in their own code. Unlike the original inclusion relationship, ASP.net can add its own defined how-to components. The development of website programs has never been so simple.
8) Security
Based on Windows authentication technology and per-application configuration, you can make sure that your original program is absolutely safe. (but the experience of Asp tells us that we can't be so confident. M$ will always be Bug.)
If you have never developed a website program, then this is not for you, you should at least master some HTML language and simple Web development terminology. You don't need previous ASP development experience (experience is better), but you must understand the concepts of interactive Web program development, including forms, scripts, and data interfaces.
After reading the above, do you have any further understanding of how to understand ASP.NET and JSP technology? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.