@RequestParam Annotation
Learn how to use the @RequestParam annotation for binding form data.
We'll cover the following
@RequestParam
annotation
The @RequestParam
annotation is used to bind form data to a method parameter.
Passing HttpServletRequest
object as a method parameter makes the getParameter()
method bind the playerName()
parameter to the variable pName
.
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.