Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
viii
Contents
Ch ap ter 5
Accessing the Standard CGI Variables 114
5.1 Servlet Equivalent of CGI Variables
116
5.2 A Servlet That Shows the CGI Variables
119
Ch ap ter 6
Generating the Server Response: HTTP Status Codes 122
6.1 Specifying Status Codes
124
6.2 HTTP 1.1 Status Codes and Their Purpose
126
6.3 A Front End to Various Search Engines
135
Ch ap ter 7
Generating the Server Response: HTTP Response Headers 142
7.1 Setting Response Headers from Servlets
143
7.2 HTTP 1.1 Response Headers and Their Meaning
145
7.3 Persistent Servlet State and Auto Reloading Pages
154
7.4 Using Persistent HTTP Connections
163
7.5 Using Servlets to Generate GIF Images
168
Ch ap ter 8
Handling Cookies 178
8.1 Benefits of Cookies
179
Identifying a User During an E commerce Session
180
Avoiding Username and Password
180
Customizing a Site
180
Focusing Advertising
181
8.2 Some Problems with Cookies
181
8.3 The Servlet Cookie API
183
Creating Cookies
183
Cookie Attributes
183
Placing Cookies in the Response Headers
186
Reading Cookies from the Client
186
8.4 Examples of Setting and Reading Cookies
186
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved