Client-Server Communication

Client-server communication is usually done through TCP/IP protocol. TCP covers part of transport and the sessions layer in a typical OSI model. TCP being a connection-oriented protocol makes sure that the connection remains in place till the messages are exchanges at the very end of the queue.

On the other hand, IP is a connectionless protocol which don’t communicate following the initial transmission of messages. TCP organizes the packets of information is a sequence which the IP treats as an independent unit. IP belongs to network layer in the OSI model.

HTTP Protocol Basics

Following are some of the methods in HTTP protocol.

Methods

Definitions

HEAD

Gets the status of a resource.

GET

Retrieval of a resource.

POST

Creation of a new resource.

PUT

Update an already existing resource.

DELETE

Delete a resource.

HTML Language Basics

HTML stands for Hyper Text Markup Language which provides the structure of a web application. It consists of different elements each responsible for the different view of a component in the browser.

HTML




<!DOCTYPE html>
<html>
   <head>
      <title>GFG : Overview to HTML</title>
   </head>
   <body>
      <h1>Welcome To GFG</h1>
      <p>This is an overview to HTML</p>
   </body>
</html>


Code Explanation:

  • The <!DOCTYPE html> provides the reference that this is an HTML followed by its root element <html>.
  • <head> provides the meta information of the HTML page which contains the links and <title> to the web page.
  • <body> contains all the components and the modules of the web application. <h1> provides large headings while <p> denotes the paragraph.
  • The boundary of the respective element is marked by its closing tag.

Advanced Java – Getting Started to Web Application

A Web Application is software that executes on the web browser. It links the customers and the service providers as a medium of exchange. For example, Amazon provides a marketplace where sellers and buyers can coexist. It provides a mechanism to exchange services and perform operations seamlessly.

Similar Reads

Understanding Web Clients and Servers

For any operation to be performed, a service provider and a service consumer need. The same relies on web applications. The one which provides the service is the web server and the one which requires it is the web client. The web client requests the client, in return for which the client responds. This is usually done through HTTP protocol and that’s the reason, why sometimes a web server is also known as an HTTP server....

Client-Server Communication

Client-server communication is usually done through TCP/IP protocol. TCP covers part of transport and the sessions layer in a typical OSI model. TCP being a connection-oriented protocol makes sure that the connection remains in place till the messages are exchanges at the very end of the queue....

Introduction to Servlets

...

Web Application Architecture

Servlets acts as the server-side heroes that processes the requests from the users’ web browser and sends back the response after the required manipulation is completed. Imagine it to be a communication channel between your server and users’ web browsers....

Java Web Frameworks

...

Handling HTTP requests and responses in Java servlets

1. Monolithic Architecture...

When to Choose a Framework

Java web frameworks acts like toolkits for building web applications. These frameworks provide you with a set of rules to make your job easier, you are being the master for the application. Two popular ones are Spring MVC and its close friend, Hibernate....