Changes between Version 11 and Version 12 of S2S_WEB_BOOK_MANAGEMENT_R0
- Timestamp:
- 12/22/08 00:17:51 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S2S_WEB_BOOK_MANAGEMENT_R0
v11 v12 36 36 Create a "books.jsp" file, which lists all the persisted books on the server: 37 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(thumbnail,name,author,description, download button). 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 38 * Access for non-logged users must be limited - they will not see the "edit" button. 40 39 * If a particular book is uploaded by the current user, he/she will see Edit button. The funcionality of Edit will be implemented in another task. 41 Create "search _books.jsp" file:42 * Make a simple search form (like [http://sophiebooks.org/s4bookstorage.html?view=search], for example), which posts the entered data to a servlet. The servletoutputs the result, using the !BookService class.43 * ! SearchServlet.java must process the GET and POST data from search_books.jsp and display the results. Since the results may be too many, 10 results must be displayed on a page, as well as links to previous/next 10results.40 Create "search.jsp" file: 41 * Make a simple search form (like [http://sophiebooks.org/s4bookstorage.html?view=search], for example), which posts the entered data to another page. The second page outputs the result, using the !BookService class. 42 * !search_results.jsp must process the GET from search.jsp and display the results. 44 43 Rename the uploaded_books.jsp to my_sophie.jsp, display there a list of the books, whose author is the current user (using the idea of the search), and link to a new page: upload_book.jsp. 45 44 * upload_book must have a form for uploading a book, and a servlet processing the POST data. Again, use the !BookService class. Fields in the upload form: