Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!