Web Programming

Todo Web Application (Servlets)

Tasks

  1. Clone the GitLab repository Todo Web App.
  2. Implement the servlet TodoListServlet that uses the todo service to provide the following method:
    • doGet renders all the todos from the service and a link to the servlet NewTodoServlet
  3. Implement the servlet NewTodoServlet that uses the todo service to provide the following methods:
    • doGet renders a form that allows a user to post a new todo
    • doPost adds a new todo to the service using the request parameters
    After adding a new todo, the browser is redirected to the servlet TodoListServlet using the sendRedirect method of the response.