linked linked linkedin whatsapp remove
Feedback

Spring Framework Quiz Spring Framework

Which one of the following is NOT true about the followng code: @Controller @RequestMapping("/reservationForm") @SessionAttributes("reservation") public class ReservationFormController { ... @RequestMapping(method = RequestMethod.POST) public String submitForm(@ModelAttribute("reservation") Reservation reservation, BindingResult result) { ... return "redirect:reservationSuccess"; } ... }

The redirect: prefix in the view name is used to avoid a problem known as duplicate form submission.
The BindingResult object is used to map the user request to the controller method.
The @SessionAttributes is used to save a Reservation object to a user’s session.
The @ModelAttribute("reservation") is used to reference the Reservation object.

Answer:
The BindingResult object is used to map the user request to the controller method.

Note: This Question is unanswered, help us to find answer for this one