| 36 | Create a "books.jsp" file, which lists all the persisted books on the server: |
| 37 | * Use the BookService class to retrieve a list with the books, and the Book class to iterate through the list, displaying each book in appropriate format. These two require importing the classes in the jsp (use <%@page import=".."%>). |
| 38 | * Keep in mind that the list can be very long. This means we have to display a certain number of books per page (for example 10), a link to the previous/next page. It will be best to be done using the GET method (this way copying/saving the URL will be easy). |
| 39 | * Access for non-logged users must be denied ( using response.sendRedirect(..); return;). |
| 40 | Create "search_books.jsp" file: |
| 41 | * Make a simple search form (like [http://sophiebooks.org/s4bookstorage.html?view=search], for example), which posts the entered data to a servlet. The servlet outputs the result, using the BookManager class. |
| 42 | |
| 43 | |
| 44 | |