| 33 | * create a page edit_book.jsp |
| 34 | * the page must not be accessible from users with username different from the book author. |
| 35 | * put a "Delete" button in this page - it will delete the bok entry from the database for now; |
| 36 | * there must be a form with the fields, representing book properties. They will automatically fill-in on page load with the current values; |
| 37 | * fields to be present: author,title,fileName,version,description,copyright,allowclone(checkbox); |
| 38 | * buttons at the form bottom: Update, Cancel. |
| 39 | * the "author" field must be immutable. |
| 40 | * the collected data must be posted to a servlet (for example, !BookEditorServlet), which will update the book entry if the data is correct, and return to the jsp with appropriate warning message is a problem occurs. |
| 41 | * Add entry for the new servlet in ServerModule.java |
| 42 | * Add the appropriate constant strings for the warning messages in ServerConstants.java |
| 43 | * in books.jsp, add the "/edit_book.jsp" with appropriate parameters as link for the "edit" button. The resulting address for each book should look like: "/edit_book.jsp?title={title}" |
| 44 | * in my_sophie.jsp([wiki:S2S_WEB_BOOK_MANIPULATION_R0]), make the links for each book title correct; |