List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:uk.org.funcube.fcdw.controller.HomeController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String home(Model model) { model.addAttribute("satelliteId", "2"); return "home"; }
From source file:uk.org.funcube.fcdw.controller.HomeController.java
@RequestMapping(value = "{satelliteId}", method = RequestMethod.GET) public String show(@PathVariable("satelliteId") Long satelliteId, Model model) { model.addAttribute("satelliteId", satelliteId); return "home"; }
From source file:com.github.dbourdette.otto.web.controller.admin.LogsController.java
@RequestMapping("/logs") public String logs(@RequestParam(required = false) Integer page, Model model) { model.addAttribute("logs", logs.page(page)); return "logs"; }
From source file:com.springmvc.videoteca.springtiles.controller.HomeController.java
@RequestMapping(method = RequestMethod.GET) public String inicio(Model modelo) { modelo.addAttribute("estrenos", masVistoService.estrenos()); modelo.addAttribute("masvistos", masVistoService.masvistos()); return "/Home/index"; }
From source file:jp.pigumer.sso.Application.java
/** * /hello.//w w w . j a v a 2s. co m * * @param user User * @param model Model * @return hello */ @RequestMapping("/hello") String hello(@CurrentUser User user, Model model) { model.addAttribute("user", user.getUsername()); return "hello"; }
From source file:mum.edu.controller.AdminController.java
@RequestMapping(value = "/pendingSwitches", method = RequestMethod.GET) public String pendingSwitches(Model model) { model.addAttribute("pendingSwitches", pendingSwitchService.getAllPendingSwitches()); return "pendingSwitches"; }
From source file:org.terasoluna.gfw.functionaltest.app.queryescape.QueryEscapeController.java
@RequestMapping(method = RequestMethod.GET) public String index(Model model) { model.addAttribute("databaseId", databaseMetaInfoService.getDatabaseId()); model.addAttribute("databaseVersion", databaseMetaInfoService.getOracleVersion()); return "queryescape/index"; }
From source file:$.$.java
@RenderMapping public String question(Model model) { model.addAttribute("releaseInfo", ReleaseInfo.getReleaseInfo()); return "${artifactId}/view"; }//w ww . j a v a2s . c o m
From source file:com.tianjunwei.modelAttribute.ModelAttributeController.java
@ModelAttribute public void init(Model model) { model.addAttribute("test", "?"); }
From source file:de.dominikschadow.javasecurity.csrf.controller.IndexController.java
@GetMapping public String index(Model model) { model.addAttribute("order", new Order()); return "index"; }