Implementing a Web server that supports video-on-demand using the Java language

Source: Internet
Author: User
Tags html page http request new features table definition

I. Project Profile:

The Java language is a portable, simple, robust embedded language. And the network, database has good support, based on the Java language features this feature can be very easy to establish a small Internet server.

In this project, the author writes a Web micro server in the Java language, responds to a simple HTTP request, and processes the user's query through the back-end database, which returns the HTML page dynamically.

Two. Project implementation:

(i) Project specific function analysis and development tool selection

A highly configurable personal desktop can be used to implement small servers within the community, including web browsing, video downloads and playback based on high-speed LAN, scheduled newsgroup releases, mail servers, and more.

The software is actually a server for an HTTP protocol. HTTP (Hyper Text Transfer Protocol) is a network protocol designed specifically for exchanging data between a Web server and a Web browser. It establishes a link between the client's browser and the server's web resources by stipulating a generic resource Locator (URL), which lays the foundation for a user's transparent access to the Internet.

In this software through the transfer of HTML files so that the client can achieve web browsing. HTML is the Universal Markup Language of WWW, which is used to create Web pages and control Web information display formats. HTML is not a programming language, but a descriptive language. HTML2.0 is supported by the IETF (Internet Engineering Task Force) to become an international standard for the Internet. At present, the HTML has been developed to 3.0 and 4.0 version, but the new version of the standard has not been fully unified, different businesses to HTML2.0 has been a certain expansion, introduced more new features. For example, Netscape has added markup such as a page bottom chart (Background Images) and table definition to HTML3.0, making Web pages more compelling.

CGI is the abbreviation of the Universal Gateway Interface (Common Gateway Interface), which is the communication interface between the Web server and the external program, and the server does not care what language the external application is written in (c, C + +, Pascal, Delphi, or Perl). It is only responsible for receiving the user input information, and the CGI program produced results--html documents or other HTTP-compliant files back to the user. In fact, CGI is the first step in the production of dynamic Web pages, but because the CGI program implementation is difficult and inefficient, it has been gradually replaced by new technology.

Web browsing supports Web pages including Html,javascript,applet,vbscript, etc., but does not support Web pages for server-side dynamic programs such as php,asp. Because the server is small, server-side dynamic programs are integrated into the server. But it can be done by writing a Java-compliant CGI program to achieve server-side dynamics, but the security of this Java program is difficult to guarantee.

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.