Spring Framework

MVC

Print out the data on submitting the form
 

@RequestMapping("/processForm")
public String processingForm(@ModelAttribute("student") Student theStudent){
   System.out.println(theStudent.getLastName());
   return "success-view";
}

Diskussion