Basics to the web
Before we actually start on Java Web Component (Servlet and JSP) it would be a good idea to have some background about web and the protocol widely used for transferring and rendering information from one machine to another.
When we talk about the web we mean the internet,and the information transferred from one place to another. In our case the client opens the web browser and sends a http(have we heard of this before ) request to a web server in the form of a URL. In turn the server answers by sending a response back to the client with the requisite information. This information could be anything depending upon what was asked by the client e.g. data information,image / graphics file,audio file or the server could send information to client asking for more data like username / password.
Now what actually happens behind the scene,is that the client browser sends a http request in a html format to a http server and in this process opens a http connection. The http server responds by sending back a resource,and the connection is closed.
 |