Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA SERVLET

HTTP Request and Response

The HTTP Request

The request object encapsulates all information from the client request. In the HTTP protocol, this information is transmitted from the client to the server by the HTTP headers and the message body of the request.

An HttpServletRequest object, which encapsulates the data from the client

The HTTP Response

The response object encapsulates all information to be returned from the server to the client. In the HTTP protocol, this information is transmitted from the server to the client either by HTTP headers or the message body of the request.

An HttpServletResponse object, which encapsulates the response to the client

Here is an example to handle request and response






Previous

Next