Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
136
Chapter 6 Generating the Server Response: HTTP Status Codes
form is submitted, the servlet extracts those three parameters, constructs a
URL with the parameters embedded in a way appropriate to the search
engine selected (see the
SearchSpec
class of Listing 6.2), and redirects the
user to that URL (see Figure 6 2). If the user fails to choose a search engine
or specify search terms, an error page informs the client of this fact (see Fig
ures 6 3 and 6 4).
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.
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