Chapter 15: JavaServer Pages: Part I
pages 18 - 34
Useful Links
Jack's Redirect Code
Processing Client Requests
- Retrieve data related to request
- Process data
- 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
- <input type="text" name="..." size="..." maxlength="..." value="..." />
- <input type="password" name="..." />
- <input type="hidden" name="..." value="..." />
- <input type="radio" name="..." value="..." />
- <input type="checkbox" name="..." value="..." />
- <input type="reset" value="Reset" />
- <input type="submit" value="Submit" />
- <textarea name="..." rows="..." cols="..."></textarea>
- select (see example)
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.