Model - Part 2
Learn to pass data between controllers by implementing search functionality.
We'll cover the following
In this lesson, we will add search functionality to our Spring MVC application. Now that we have a form for taking the player name as input (search-player-form.jsp
), we will add functionality to return information about the player chosen by the user.
Player
class
We will create a Player
class in io.datajek.springmvc.tennisplayerweb
package with name, nationality, date of birth, and number of titles as members. We will create getters and a constructor for initializing a Player
object.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.