List of usage examples for org.springframework.ui Model addAttribute
Model addAttribute(String attributeName, @Nullable Object attributeValue);
From source file:app.igogo.controller.GreetingController.java
@RequestMapping("/hello") public String greeting(@RequestParam(value = "name", required = false, defaultValue = "World") String name, Model model) { model.addAttribute("name", name); return "hello"; }
From source file:br.com.proj.web.controllers.HomeController.java
@RequestMapping("/welcome") public String welcome(Model model) { model.addAttribute("greeting", "Welcome to Web Store!"); model.addAttribute("tagline", "The one and only amazing webstore"); return "welcome"; }
From source file:com.as.sagma.ControladorNominas.java
@RequestMapping(value = "/tipo/{tipo}", method = RequestMethod.GET) /** /tipo/{las llaves permiten un tipo de valor en la url (como uri)**/ public String obtenerNomina(@PathVariable String tipo, Model model) { model.addAttribute("minomina", "Tu estas interesado en un tipo de cuenta " + tipo); return "servicioNomina"; }
From source file:org.openmrs.logic.web.controller.ManageRuleDefinitionsController.java
@RequestMapping(value = "/module/logic/manageRuleDefinitions") public void listLogicRules(Model model) { model.addAttribute("rules", Context.getService(RuleDefinitionService.class).getAllRuleDefinitions(true)); }
From source file:edu.mum.waa.webstore.controller.CartController.java
@RequestMapping(value = "/{cartId}", method = RequestMethod.GET) public String getCart(@PathVariable(value = "cartId") String cartId, Model model) { model.addAttribute("cartId", cartId); return "cart"; }
From source file:org.openmrs.web.controller.concept.ConceptAttributeTypeListController.java
/** * Show existing//from w w w. j av a 2 s .co m */ @RequestMapping("/admin/concepts/conceptAttributeTypes") public void list(Model model) { model.addAttribute("attributeTypes", Context.getConceptService().getAllConceptAttributeTypes()); }
From source file:org.openmrs.web.controller.location.LocationAttributeTypeListController.java
/** * Show existing//from ww w . j a v a 2s .c o m */ @RequestMapping("/admin/locations/locationAttributeTypes") public void list(Model model) { model.addAttribute("attributeTypes", Context.getLocationService().getAllLocationAttributeTypes()); }
From source file:edu.mum.waa.webstore.controller.HomeController.java
@RequestMapping("/welcome") public String welcome(Model model) { model.addAttribute("greeting", "Welcome to Web Store!"); model.addAttribute("tagline", "The one and only amazing webstore"); return "welcome"; }
From source file:com.mum.controller.LoginController.java
@RequestMapping(value = "/loginfailed", method = RequestMethod.GET) public String loginError(Model model) { model.addAttribute("error", true); return "login"; }
From source file:com.vdenotaris.spring.boot.security.saml.web.contollers.LandingController.java
@RequestMapping("/landing") public String landing(@CurrentUser User user, Model model) { model.addAttribute("username", user.getUsername()); return "landing"; }