Web Programming

Todo Web Application (Servlets)

The objective of this exercise is to implement a servlet for maintaining a todo list.

Tasks

  1. Extract the template project todo-web-app.zip.
  2. Create the HTML page todo.html that allows a user to post the title, category and due date of a todo.
  3. Implement the servlet TodoListServlet that holds a global todo list and provides the following methods:
    • doGet renders all the todos of the list
    • doPost adds a new todo to the list using the request parameters


Solution