Customized SearchEngines.java

June 7, 2007

The SearchEnginesFrontEnd servlet shown above sends its data to the CustomizedSearchEngines servlet. Read the rest of this entry »


SearchEngines FrontEnd.java

June 7, 2007

This servlet builds the form-based front end to the search engine servlet. Read the rest of this entry »


LongLivedCookie.java

June 7, 2007

(Download source code)

Here’s a small class that you can use instead of Cookie Read the rest of this entry »


Getting the Value of a Cookie with a Specified Name

June 7, 2007

Here’s a section of ServletUtilities.java that slightly simplifies the retrieval of a cookie Read the rest of this entry »


Reading Cookies from the Client

June 7, 2007

To send cookies to the client, you created a Cookie then used addCookie to send a Set-Cookie HTTP response header Read the rest of this entry »


Placing Cookies in the Response Headers

June 7, 2007

The cookie is added to the Set-Cookie response header Read the rest of this entry »


Reading and Specifying Cookie Attributes

June 7, 2007

Before adding the cookie to the outgoing headers, you can look up or set attributes of the cookie. Here’s a summary: Read the rest of this entry »


Creating Cookies

June 7, 2007

A Cookie is created by calling the Cookie constructor, which takes two strings: Read the rest of this entry »


The Servlet Cookie API

June 7, 2007

To send cookies to the client, a servlet would create one or more cookies with the appropriate names and values via Read the rest of this entry »


Overview of Cookies

June 7, 2007

Cookies are small bits of textual information that a Web server sends to a browser and that the browser returns unchanged when visiting the same Web site or domain later. Read the rest of this entry »