Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to Wireless and Mobile Systems

Authors: Dharma P. Agrawal, Qing An Zeng

4th edition

1305087135, 978-1305087132, 9781305259621, 1305259629, 9781305537910 , 978-130508713

More Books

Students also viewed these Programming questions