Skip to content

Commit

Permalink
Connection form ready for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogui committed Jun 27, 2024
1 parent 8ecbd9c commit a9549bc
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ public String onPost(ModelMap modelMap, HttpServletRequest request,
* pojo. The bean name defined in the ModelAttribute annotation and the type can be just defined
* by the return type of this method
*/
@ModelAttribute("users")
protected List<User> getUsers() throws Exception {
List<User> users = userService.getAllUsers();
// this object will be made available to the jsp page under the variable name
// that is defined in the @ModuleAttribute tag
return users;
}
// @ModelAttribute("users")
// protected List<User> getUsers() throws Exception {
// List<User> users = userService.getAllUsers();
//
// // this object will be made available to the jsp page under the variable name
// // that is defined in the @ModuleAttribute tag
// return users;
// }

}

0 comments on commit a9549bc

Please sign in to comment.