Jsp http Server System Analysis

Source: Internet
Author: User

System Analysis

Through the above analysis and instructions, the reader has basically learned how to customize the jsp http server that he needs. However, the characteristics of the jsp http server system may be vague. Here we will analyze the features of the jsp http server from the following aspects.

1. Stability

The jsp http server uses the code robustness and Stability of the java system to handle Exception and asynchronous requests. The program stability is guaranteed.

Tip: Although java exception mechanisms may be cumbersome to use, they play an important role in system stability.

2. scalability

This system is developed using java, which makes it easier to transfer the jsp http server system to other platforms, such as MS Windows, Linux, and Solaris. I tried to transfer the code to the Solaris 8 system, but modified the file path delimiter.
You can expand the service file type as needed. Extends user-specific JSP syntax and commands. This makes the service form more in line with user features.

Tip: The latest jdk version released by SUN is 1.6.0, which supports MS Windows, Linux, and Solaris.

3. Rationality and optimization of execution efficiency

1) cleverly integrates the Class Loader technology of the Java System and follows the principle of "loading first and then using later" to truly achieve "loading once and reusing multiple times ", this greatly reduces disk access and improves the server execution efficiency.
2) The multi-threaded architecture of client request processing, which allows multiple clients to simultaneously access the jsp http server. If the Thread Pool is used, the efficiency of client request processing can be further improved.

4. ease of use

The system introduction shows that the configuration of the jsp http server system is relatively simple.

1) system settings, such as the service page Directory, Rule Page, and system path separator, are reduced to the simplest.
2) The Custom JSP syntax is also relatively simple and easy to use by common users. As long as you understand a certain java syntax, you can write jsp syntax, just as easy as writing java source files, or even easier than writing Java Application. Here is the content of a simple jsp source file:

5. Support for the original system

The system also supports CGI flexibly and can be extended to pass parameters to CGI processes in multiple ways. In this way, the system can be upgraded without changing the user's original CGI service system.

Summary and supplement

1. Technical Points Summary

The jsp http server has been developed with a lot of knowledge, not only taking into account the old standards such as CGI, HTTP, MIME), but also taking into account the new technology Class Loader and multithreading ), knowledge involves a lot. In my opinion, it mainly includes the following points:
1) have certain network knowledge. For example, for HTTP standard RFC2680), MIME standard RFC2046), and CGI standard.
2) multithreading technology, real-time processing of client requests, reasonable processing of request concurrency.
3) Java technology, including inter-process communication technology, Class Loader technology, and encoding and decoding.
4) have a certain understanding and experience in cross-platform systems. For example, I have good experience in developing Windows and Solaris platforms.
5) be good at learning and analyzing other similar systems. For example, I have studied and analyzed HTML, ISAPI, IIS, CGI, PHP, Apache, Tomcat, and JSP in depth. Find out the shortcomings of each system and try out a solution.

2. Deficiencies

As a non-commercial design, there are still many shortcomings in the jsp http server system design. For time reasons, I cannot improve the system in the near future. The author believes that the main areas to be improved are:

1) multilingual systems are not considered in the design, although the Java system can easily support multilingual systems.
2) The MIME type is too limited in the jsp http server system.
3) The Custom JSP syntax is too simple. Many hard definitions may cause inconvenience to users. For example, a JSP expression can only have one expression in a row. In addition, the public functions provided to the Service Page are too lacking, and many function functions can be provided to the Service Page for use. In this way, the code of the Service page can be simplified.
4) it is dangerous to directly create files such as java and class in the jsp file directory to easily expose the server content. You should consider using the cache architecture to isolate the intermediate files from the source files.

  1. Analysis on CGI supported by jsp http Server
  2. Use JSP pages to generate PDF reports
  3. Step for customizing JSP labels
  4. Detailed test of JSP containers
  5. Describes the following features of jsp http Server

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.