Changes between Version 8 and Version 9 of S2S_WEB_BOOK_MANAGEMENT_R0
- Timestamp:
- 12/20/08 13:07:34 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S2S_WEB_BOOK_MANAGEMENT_R0
v8 v9 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 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;). 39 * Access for non-logged users must be limited - they will not see the "delete" and "edit" buttons ( using response.sendRedirect(..); return;). 40 * If a particular book is uploaded by the current user, he/she will see Edit and Delete buttons. The funcionality of Edit will be implemented in another task. 40 41 Create "search_books.jsp" file: 41 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 servlet outputs the result, using the !BookService class. 42 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 10 results. 43 Rename the uploaded_books.jsp to my_sophie.jsp, display there a list of the books, uploaded bythe current user (using the idea of the search), and link to a new page: upload_book.jsp.44 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. 44 45 * 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: 45 46 * Author (defaulted to the name of the user uploading the book) … … 47 48 * File name 48 49 * Description 49 * Allow cloning (defaulted to true) 50 * Allow commenting 51 * Commenters allowed to delete their own comments (defaulted to true) 52 * Privacy level 53 * Private / Public 54 * Password 55 * Group 50 * Since this is a prototype, for now just the fields will be added to the database, and the book itself will not be persisted on the server. 56 51 57 52 = Implementation =