[CS320Answers]
This quarter we are going to implement a web application called CS320Answers, which is similar to Stack Overflow where people can post questions and get answers. In this assignment, you are going to implement some basic features using servlets or a combination of servlets and HTML pages.
1. (30pt) The Question List page shows the list of the questions that are currently in the system:
CS320Answers - Questions | ||||||||||||||||||||
|
||||||||||||||||||||
Post A Question |
Note that the list of questions should be sorted by Post Time in descending order, and Post Time should be formatted as shown in the example above.
2. (10pt) When a user clicks on a tag, only the questions with that tag should be displayed. For example, if a user clicks on the "servlet" tag, the display should be changed to
CS320Answers - Questions | ||||||||||||
|
||||||||||||
All Questions | Post a Question |
And clicking on the All Questions link should take the user back to the full question listing.
3. (20pt) When a user clicks on the Post a Question link, the application shows the Post Question page where the user can post a new question:
CS320Answers - Post A Question | ||||||||
|
||||||||
Tags are keywords of a question. Each tag is a single word with lower-case letters. Each question must have at least one tag, and multiple tags are separated by white spaces.
3. (20pt) After a user posts a new question, or when a user clicks on a question in the question list, the application displays the question and its answers as follows:
CS320Answers - Question - Tomcat cannot restart | |||||||||||||
Back to Questions | |||||||||||||
Answers:
Submit an Answer:
|
Clicking on the Back to Questions link should take a user to the Question List page.
4. (20pt) A user may use the form on the Question Display page to submit an answer to a question.
[NOTES]