Java Reference
In-Depth Information
Chapter 8
Learning Objectives
After reading this chapter, you should:
￿ understand what Java servlets are and how they are used;
￿ appreciate the power of Java servlets;
￿ know what software and installation steps are required before servlets can be
created and tested;
￿ know how to create your own servlets for processing simple form data and
returning results in a Web page;
￿ know how to create and use session variables with servlets;
￿ know how to redirect a user to any of several possible Web pages and/or
know how to make use of cookies with servlets;
know how to make use of servlets (and JDBC) to access a remote database.
HTML (HyperText Markup Language) is the tagging language used to create Web
pages. In order to appreciate fully the material presented in this chapter, it will be
necessary to have at least a rudimentary knowledge of HTML. If you do not have
such knowledge, you are advised to consult the early chapters of one of the widely-
available HTML texts before reading any further.
Through the introduction of HTML and its distribution system, the World Wide
Web, use of the Internet has mushroomed at a phenomenal rate. However, HTML
alone may be used to create static Web pages only—pages whose content is deter-
mined at the time of writing and which never changes. Though this is perfectly
adequate for some applications, an increasing number of others have a requirement
Search WWH ::

Custom Search