Chapter 2. HTTP and Servlet Basics
Let’s start this chapter by defining the term web application . We’ve all seen regular client-side applications. But what exactly is a web application? Loosely, we could define it as an application running on a server that a user accesses through a thin, general-purpose client. Today, the most common client is a web browser on a PC or workstation, but soon all kinds of clients will be used, such as wireless PDAs, cellular phones, and other specialized devices.
The lofty goal here is to access all the information and services you need from any type of device you happen to have in front of you. This means that the same simple client program must be able to talk to many different server applications, and the applications must be able to work with many different types of clients. To satisfy this need, the protocol of how a client and a server talk to each other must be defined in detail. That’s exactly what the HyperText Transport Protocol (HTTP) is for.
The communication model defined by HTTP forms the foundation for all web application design. You therefore need a basic understanding of HTTP to develop applications that fit within the constraints of the protocol, no matter which server-side technology you use. In this chapter, we look at the most important details of HTTP that you need to be aware of as a web application developer.
One other item. This book is about using JSP as the server-side technology, so that’s what we’ll primarily focus on. As ...
Get Java Server Pages now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.