Web Programming
Todo Web Application (Servlets)
The objective of this exercise is to implement a servlet for maintaining a todo list.
Tasks
-
Extract the template project todo-web-app.zip.
-
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
-
Create the HTML page
todo.html
that allows a user to post the title, category and due date of a todo.
Solution