Client-Side Presentation Logic
619
Now, here is the acid test click the Update button!
This should set the following sequence of events into motion:
q
VacationApplet starts an HTTP GET transaction to contact VacationServlet
q
VacationServlet goes through the JDBC to ODBC bridge and accesses the RDBMS sell-off
information
q
VacationServlet builds a DOM tree of the RDBMS information, and creates an XML
dataset, which it returns to the VacationApplet for client-side processing
q
VacationApplet receives the disconnected XML dataset and parses it using a SAX2 parser
q
VacationApplet builds an internal Vector of TravelDeal objects and populates the AWT
listbox with the list of objects
Whew! No wonder it takes a little while to start up in this test. You should see a display similar to the
one below if all goes well.
Now, you can try client-side filtering by clicking any of the region filters. Try clicking the Hawaii or
Mexico filters and you will see that the displayed list is filtered.