Order the Book

Package coreservlets

Class Summary
AccessCountBean Simple bean to illustrate sharing beans through use of the scope attribute of jsp:useBean.
BadCodeServlet Servlet that displays a fragment of some Java code, but forgets to filter out the HTML-specific characters (the less-than sign in this case).
Catalog A catalog listing the items available in inventory.
CatalogPage Base class for pages showing catalog entries.
CatalogTest  
Connection  
ConnectionPool A class for preallocating, recycling, and managing JDBC connections.
ConnectionPoolServlet A servlet that reads information from a database and presents it in an HTML table.
ConnectionPoolServlet2 A variation of ConnectionPoolServlet that uses only a single connection, queueing up all requests to it.
ConnectionPoolServlet3 A variation of ConnectionPoolServlet that does NOT use connection pooling.
ConnectionPoolTest  
ConnectionPoolTestOracle  
CustomizedSearchEngines A variation of the SearchEngine servlet that uses cookies to remember users choices.
DatabaseUtilities Three database utilities:
1) getQueryResults.
DBResults Class to store completed results of a JDBC Query.
DBResultsTableModel Simple class that tells a JTable how to extract relevant data from a DBResults object (which is used to store the results from a database query).
DriverUtilities Some simple utilities for building Oracle and Sybase JDBC connections.
EmployeeCreation Make a simple "employees" table using DatabaseUtilities.
EmployeeTest Connect to Oracle or Sybase and print "employees" table.
EmployeeTest2 Connect to Oracle or Sybase and print "employees" table as an HTML table.
EmployeeTest2Oracle  
EmployeeTest2Sybase  
EmployeeTestOracle  
EmployeeTestSybase  
EncodedPage Example showing benefits of gzipping pages to browsers that can handle gzip.
ExitListener A listener that you attach to the top-level Frame or JFrame of your application, so quitting the frame exits the application.
FilteredCodeServlet Subclass of BadCodeServlet that keeps the same doGet method but filters the code fragment for HTML-specific characters.
FilterTest  
FrameCell Illustrates the value of persistent HTTP connections for pages that includes many images, applet classes, or other auxiliary content that would otherwise require a separate connection to retrieve.
FrequentFlyerInfo Simple class describing an airline and associated frequent flyer number, used from the TravelData class (where an array of FrequentFlyerInfo is associated with each customer).
FruitCreation Creates a simple table named "fruits" in either an Oracle or a Sybase database.
FruitTest A JDBC example that connects to either an Oracle or a Sybase database and prints out the values of predetermined columns in the "fruits" table.
FruitTestOracle  
FruitTestSybase  
HelloWWW2 Simple servlet that generates HTML.
HelloWWW3 Simple servlet that generates HTML.
HotelInfo Simple class describing a hotel name and associated frequent guest number, used from the TravelData class (where an array of HotelInfo is associated with each customer).
ImageRetriever A servlet that reads a GIF file off the local system and sends it to the client with the appropriate MIME type.
Item Describes a catalog item for on-line store.
ItemOrder Associates a catalog Item with a specific order by keeping track of the number ordered and the total price.
KidsBooksPage A specialization of the CatalogPage servlet that displays a page selling three famous kids-book series.
LabelPanel A small JPanel that includes a JLabel to the left of a designated component.
LongLivedCookie Cookie that persists 1 year.
LotteryNumbers Example using servlet initialization and the getLastModified method.
MessageImage Utilities for building images showing shadowed messages.
OrderPage Shows all items currently in ShoppingCart.
PersistentConnection Illustrates the value of persistent HTTP connections for pages that includes many images, applet classes, or other auxiliary content that would otherwise require a separate connection to retrieve.
PersistentFrame Illustrates the value of persistent HTTP connections for pages that includes many images, applet classes, or other auxiliary content that would otherwise require a separate connection to retrieve.
PreparedStatements An example to test the timing differences resulting from repeated raw queries vs.
PrimeList Creates a Vector of large prime numbers, usually in a low-priority background thread.
PrimeNumbers Servlet that processes a request to generate n prime numbers, each with at least m digits.
Primes A few utilities to generate a large random BigInteger, and find the next prime number above a given BigInteger.
ProtectedPage Example of password-protected pages handled directly by servlets.
QueryGenerator Servlet that generates an array of strings and sends them via an ObjectOutputStream to applet or other Java client.
QueryViewer An interactive database query viewer.
RentalCarInfo Simple class describing a car company and associated frequent renter number, used from the TravelData class (where an array of RentalCarInfo is associated with each customer).
SaleEntry Simple bean to illustrate the various forms of jsp:setProperty.
SearchEngines Servlet that takes a search string, number of results per page, and a search engine name, sending the query to that search engine.
SearchEnginesFrontEnd Dynamically generated variation of the SearchEngines.html front end that uses cookies to remember a user's preferences.
SearchSpec Small class that encapsulates how to construct a search string for a particular search engine.
ServletUtilities Some simple time savers.
SetCookies Sets six cookies: three that apply only to the current session (regardless of how long that session lasts) and three that persist for an hour (regardless of whether the browser is restarted).
ShadowedText Servlet that generates GIF images representing a designated message with an oblique shadowed version behind it.
ShadowedTextApplet Applet interface to the ShadowedTextFrame class.
ShadowedTextFrame Interactive interface to MessageImage class.
ShoppingCart A shopping cart data structure used to track orders.
ShowCGIVariables Creates a table showing the current value of each of the standard CGI variables.
ShowCookies Creates a table of the cookies associated with the current page.
ShowMessage Example using servlet initialization.
ShowPage Example of the include method of RequestDispatcher.
ShowParameters Shows all the parameters sent to the servlet via either GET or POST.
ShowRequestHeaders Shows all the request headers sent on this particular request.
ShowSession Simple example of session tracking.
StringBean A simple bean that has a single String property called message.
SubmitResume Servlet that handles previewing and storing resumes submitted by job applicants.
TechBooksPage A specialization of the CatalogPage servlet that displays a page selling two famous computer books.
ThreeParams Simple servlet that reads three parameters from the form data.
Travel Top-level travel-processing servlet.
TravelCustomer Describes a travel services customer.
TravelCustomerTest  
TravelData This class simply sets up some static data to describe some supposed preexisting customers.
WindowUtilities A few utilities that simplify using windows in Swing.
 


Order the Book

Order
CSAJSP @ amazon.com

Return to Top-Level Source Code Archive