Combine features of several servlets
at the end of Core Servlets Chapter 4.
- Provide
an html form with several fields, like the insurance info or auction
examples, but you may use your own ideas. Form action will be a get (or
post) to a servlet
- The servlet will populate a bean from the form using
utilities provided in CoreServlets (or write
your own).
- You will
use bean utilities, logging and collections and need to download these
from http://commons.apache.org
- You
will need a (java) bean, (ie. a class with a
default constructor, getter and setters for each field, whose fields match
the data in the form).
- You
should use the mechanisms in the last example in chapter 4 – the auction
bid example – which check to make sure all the form fields have been
entered.