Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have an html page that is submitting to /editStudent, but also uses path variables to specify which student to edit by passing in
You have an html page that is submitting to /editStudent, but also uses path variables to specify which student to edit by passing in an id (recall @PathVariable). 1. Write down what is missing for 1. 2. Write down what is missing for 2. 3. Complete the method as instructed in the comments. @GetMapping 1 public String editStudent ( 2 Model model) { DatabaseAccess database = new DatabaseAccess (jdbc); // DatabaseAccess has a getStudent (...) instance method that // accepts a Long and returns an instance of Student. // complete the code to get the instance, add it to the model // then send the request to an edit_student .html page
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started