List of usage examples for org.springframework.ui ModelMap addAttribute
public ModelMap addAttribute(String attributeName, @Nullable Object attributeValue)
From source file:io.github.autsia.crowly.controllers.IndexController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String index(ModelMap model) { model.addAttribute("title", "Sign in to Crowly"); model.addAttribute("description", "SocialCRM"); model.addAttribute("author", "Dmytro Titov"); return "index"; }
From source file:org.n52.oss.ui.controllers.LoginController.java
@RequestMapping(value = "/login", params = "fail") public String loginWithFail(ModelMap map) { map.addAttribute("LoginFailed", true); return "login/login"; }
From source file:com.prongbang.web.controller.HomeController.java
@RequestMapping(value = "/home", method = RequestMethod.GET) public String home(ModelMap model) { model.addAttribute("message", "prongbang"); return "index"; }
From source file:com.stitchgalaxy.sg_manager_web.LoginController.java
@RequestMapping(value = UrlConstants.URL_LOGIN_FAILED, method = RequestMethod.GET) public String loginerror(ModelMap model) { model.addAttribute("error", "true"); UrlConstants.AddUrlConstants(model); return "login"; }
From source file:de.bit.hybris.commerce.hmc.controller.BitcommercehmcHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", bitcommercehmcService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:org.openmrs.module.clinicalsummary.web.controller.response.MedicationResponseListController.java
@RequestMapping(method = RequestMethod.GET, value = "/module/clinicalsummary/response/medicationResponseList") public void populatePage(final ModelMap map) { map.addAttribute("displayTypes", Arrays.asList(ResponseDisplayType.values())); }
From source file:org.openmrs.module.rheashradapter.web.controller.RheaPostEncounterLogController.java
@RequestMapping(value = "/module/rheashradapter/managePostEncounterLogs", method = RequestMethod.GET) public void manage(ModelMap model) { model.addAttribute("postEncounterLogs", Context.getService(LogEncounterService.class).getPostEncounterLogs()); }
From source file:com.epam.training.controller.SergiiHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", sergiiService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:de.hybris.platform.bonstore.controller.BonstoreHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", bonstoreService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:de.hybris.platform.bonstorehmc.controller.BonstorehmcHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", bonstorehmcService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }