Web Application Client

Source: Internet
Author: User

Today, a new course of learning has started, with the basics of Web applications and XHTML. Feeling or relatively simple, mainly to rely on their own to understand the knowledge of memory books.

Host/Sub-terminal
Host/terminal mode (mainframe/terminal): The terminal's user interface is a simple character-based screen. (e.g. supermarket collection, airline ticketing, small savings bank, etc.)

However, it is affected by a number of issues, including the following:

① all the processing in a single computer.

② applications are very difficult to maintain.

③-specific features make it very difficult to integrate with other programs on other platforms.

Client/server

The distributed client/server model (Client/server, abbreviated as C/s) is divided into two categories:

① a computer that provides a variety of services (primarily database services, print services) to other computers, called servers.

② a computer that is serviced by a server and becomes a client.

Advantages: With good information sharing, network information transmission is small.

Disadvantages: Difficult to maintain, user interface style inconsistent, can handle the data type is not easy to spread and so on.

Browser/server

Browser/server Mode (browser/server, abbreviated B/s): In the form of Web pages (written in Hypertext Markup Language HTML) stored on the Web server, the user runs the application, and the database to do the corresponding data processing work, and finally the results through the browser display to the user.

Applications developed using the B/s computer model are commonly referred to as Web applications.

Basic components:

① a Web application made up of Web pages.

② a Web server that stores Web applications and provides Web browsing services.

③ parses the Web page and displays the Web page to the client browser that the user browses.

④ the HTTP network protocol that provides communication on the client and Web server side.

In Web pages, the language used to write document representations is CSS (cascading style sheets casading style Sheet), while Dom is the Document Object model

Common to Web server software are: Apache, Tomcat, Microsoft Internet Information Server (IIS), IBM WebSphere, Netscphere, NetScape Application Server, Oracle Web server, and more.

HTTP request: Divided into four parts: request line, request header, a blank line, the body of the message. It requests encapsulation of the behavior that the client requests the server to perform, the version of the HTTP protocol, the resource to be requested, the browser information used natively, the file format that the native browser can parse, and so on.

HTTP response: Also divided into four parts: status line, response header, a blank line, the body of the message. It encapsulates the information returned by the server side to the client, including the HTTP version, the response code, the response description, the Web server version information, the type of content returned, and the page information returned.

Page Category:

1) static Web page

We generally see static Web pages, which are saved in. html or. htm files.

Advantages: The efficiency of information access is very high, the erection and development of the site is quite easy.

2) Client Dynamic Web page

A client Dynamic Web page is a Web server that sends the original HTML page and a set of scripts, components, and so on that contain page logic to the client. These scripts and components contain instructions on how to interact with the user and generate dynamic content, parsing the HTML page and executing the instructions by the client's browser and its accompanying plug-in.

Typical client Dynamic web technologies include: JavaScript, Active x controls, Java applets, and so on.

3) server-side Dynamic Web page

Server-side Dynamic Web pages can be developed by Java Technology's Jsp/servlet technology, or by Microsoft's ASP or ASP. NET technology, or by PHP, CGI, Ruby and other technologies.

Whether we use static Web pages or Dynamic Web page technology to develop Web pages, ultimately by the Web server parsing, through the HTTP protocol sent to the client, is a form.

How the Web works:

① developers to write Web pages.

The ② server is started, assigned to a port, and listens for HTTP requests sent over.

③ users type an HTTP Web page request on the client to establish a connection to the server.

The ④ is encapsulated into a message called an HTTP request, which is sent to the server.

⑤ accepts HTTP requests, locates files, and interprets dynamic Web pages as static pages.

The ⑥web server encapsulates the content into an HTTP request and sends it to the client.

⑦ Browser parsing HTML.

Web Application Client

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.