In this chapter we use JSP and Java Beans to build an online bookstore. The examples introduced in this chapter can be divided into two parts. The first part is an ordinary program for customers to purchase books online. The second part is a management program for processing customer orders on the server side. The client program consists of the following parts: default.jsp: Member login interface (home page); checklogon.jsp: Check whether the login code and password are consistent, and display different information based on the results returned by JavaBean. BuyerBean: Bean used for member’s legality check; booklist.jsp: Displays available books in the current bookstore to logged-in members; addcart.jsp: Add the selected book to the shopping cart; shoppingcart.jsp: View the contents of the shopping cart; The database in this example uses Access (.MDB database), and the easy-to-understand JDBC-ODBC method is used to access the database. Before using this example, first establish an ODBC data source: bookstore in the local database.