List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:com.vgorcinschi.bootone.web.JournalController.java
@RequestMapping("/") public String index(Model model) { System.out.println("method index entered"); model.addAttribute("journal", journalRepository.findAll()); return "index"; }
From source file:app.controller.PhotoController.java
@RequestMapping(method = RequestMethod.GET) public String get(Model model) { model.addAttribute("count", imageRepository.count()); model.addAttribute("images", imageRepository.findAll()); return "photocan"; }
From source file:com.comcast.video.dawg.controller.park.PopulateController.java
@RequestMapping(value = "populateTable") public String populateTable(Model model) { model.addAttribute("population", parkService.getSavedTokens()); return "populateTable"; }
From source file:com.epam.ipodromproject.controller.AdminController.java
@RequestMapping(value = "admin", method = RequestMethod.GET) public String goToAdmin(Model model) { model.addAttribute("roles", Role.values()); return "adminPage"; }