A Markdown blogging web application based on Apache Tomcat, MySQL and Java ServerPages (JSP).
This web application allows users to create a new post (written in markdown), preview the post (rendered in HTML), and manage existing posts. These tasks are supported through three main webpages: edit page, preview page, and list page.
The "edit page" allows editing the title and body of a post.-
The page contains two input boxes
- a title box of text type. This text input element must have the ID attribute with value "title".
- a body <textarea>. This textarea element must have the ID attribute with value "body".
-
The page contains four buttons: save, close, preview, and delete. Once pressed,
- "save" button saves the content of the post to the database and goes to the "list page".
- "close" button goes to the "list page" without saving the current content.
- "preview" button goes to the "preview page" (without saving the current content).
- "delete" button deletes the post from the database and goes to the "list page".
- title, creation, and modification dates of the post, and
- two buttons: open and delete. Once pressed,
- "open" button goes to the "edit page" for the post.
- "delete" button deletes the post from the database and comes back to the list page.
The list page contains a "new post" button to allow users to create a new post. Once pressed, the button leads to the "edit page" for a new post.
This web application follows the following REST API:
/editor/post?action=type&username=name&postid=num&title=title&body=body
The parameter "action" specifies one of five "actions" that your site has to take: open, save, delete, preview, and list. The other four parameters, username, postid, title, and body are (optional) parameters that the actions may need.