Web Programming
Todo Web Application (Servlets)
Tasks
-
Clone the GitLab repository Todo Web App.
-
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
-
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.