@RequestParam Annotation
Learn how to use the @RequestParam annotation for binding form data.
We'll cover the following...
Passing the HttpServletRequest
object as a method parameter allows the getParameter()
method to retrieve the value of the playerName
parameter from the request and assign it to the variable pName
.
Press + to interact
@RequestParam
annotation
Another way of binding form data is by using the request binding annotation ...