- Question 1: jQuery - Dynamic Content Update
- Student List
- Student List
Question 1: jQuery - Dynamic Content Update
Objective: Use jQuery to dynamically update a p element with user input from an input field when a button is clicked.
This text will be updated.
``` # Question 2: Thymeleaf - Displaying a List of Items Objective: Use Thymeleaf to display a list of students stored in a backend Java controller. Info you may need: - student.getStatus(): Returns True if the student passed, returns False if the student failed - student.getName(): Returns student name - student.getGrade(): Returns student grade ```python @Controller public class StudentController { @GetMapping("/students") public String getStudents(Model model) { ListStudent List
Name | Grade | Status |
---|---|---|
Student List
Name | Grade | Status |
---|---|---|
We can use Spring Boot to link Thymeleaf and Backend controller
You don't have to hard code values
However you have to keep rerunning Spring Boot to see changes when you make changes to thymeleaf code