Web Programming
Todo Web Application (Server Pages)
The objective of this exercise is to implement Jakarta server pages for displaying and creating todos.
Tasks
-
Add the dependencies
jakarta.servlet.jsp.jstl-api und jakarta.servlet.jsp.jstl to the Maven project.
-
Modify the
doGet method of the TodoListServlet so that it adds the existing todos to the request and forwards the request to the server page todoList.jsp which renders the todos.
-
Modify the
doGet method the NewTodoServlet so that it adds the todo categories to the request and forwards the request to the server page newTodo.jsp which renders the form for posting a new todo.
Solution