Java Web Applications

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. Implement the servlet TodoListServlet that holds a global todo list and provides the following methods:
    • doGet renders all the todos and a button to add a new todo
    • doPost adds a new todo to the list using the request parameters
  3. Create the HTML page todo.html that allows a user to post the title, category and due date of a todo.


Solution