Learn Java for Web Development

(Tina Meador) #1

34 CHAPTER 1: Introducing Java Web Development



  1. List books = bookDao.searchBooksByKeyword(keyWord);

  2. for (Book book : books) {

  3. System.out.println(book);

  4. }

  5. }

  6. }


Figure 1-20 illustrates the directory structure of the stand-alone application.


Figure 1-20. Directory structure of the stand-alone bookstore application


Running this application gives the following output:


In the next chapter, you will develop the web layer that will replace this client and that will call the
data access layer in the bookstore web application.

Free download pdf