15.2. Example: An On-Line Travel Agent

Consider the case of an on-line travel agent that has a quick-search page, as shown in Figure 15-1 and Listing 15.2. Users need to enter their e-mail address and password to associate the request with their previously established customer account. Each request also includes a trip origin, trip destination, start date, and end date. However, the action that will result will vary substantially based upon the action requested. For example, pressing the “Book Flights” button should show a list of available flights on the dates specified, ordered by price (see Figure 15-1). The user's real name, frequent flyer information, and credit card number should be used to generate the page. On the other hand, selecting ...

Get Core Servlets and JavaServer Pages™ now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.