Chapter 15: JavaServer Pages: Part I

pages 18 - 34

Useful Links

Jack's Redirect Code

Processing Client Requests

  1. Retrieve data related to request
  2. Process data
  3. Send output to client

A number of implicit objects can be accessed by JSP scripting elements such as request, response, out, application, exception

Example

See the following code to see how to retrieve request header information as well as client and server information.

HTML Forms and Form Collection

Sample code. Notice that checkbox processing requires the use of arrays.

Exercise

Type in and get the guestbook example from Exercise 15-3 to work - 3 points. Add some interesting functionality to this example - 2 points. Have Jack or John check your work when you are finished.