List of usage examples for org.springframework.ui ModelMap addAttribute
public ModelMap addAttribute(String attributeName, @Nullable Object attributeValue)
From source file:de.hybris.platform.cuppytrail.controller.CuppytrailHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", cuppytrailService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:de.hybris.platform.cuppytrailfrontend.controller.CuppytrailfrontendHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", cuppytrailfrontendService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:de.hybris.platform.cuppytrailhmc.controller.CuppytrailhmcHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", cuppytrailhmcService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:de.hybris.platform.dfcheckoutfacade.controller.DfcheckoutfacadeHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", dfcheckoutfacadeService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:de.hybris.platform.dfcheckoutservice.controller.DfcheckoutserviceHelloController.java
@RequestMapping(value = "/", method = RequestMethod.GET) public String printWelcome(final ModelMap model) { model.addAttribute("logoUrl", dfcheckoutserviceService.getHybrisLogoUrl(PLATFORM_LOGO_CODE)); return "welcome"; }
From source file:edu.usc.lunchnlearn.elasticsearch.controller.HomeController.java
@RequestMapping(value = "/index.html", method = RequestMethod.GET) public String printIndex(ModelMap modelMap) { modelMap.addAttribute("message", "WoW ElasticSearch"); return INDEX_PAGE; }
From source file:net.groupbuy.controller.admin.PaymentPluginController.java
/** * //from w w w . j a va 2s . c o m */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String list(ModelMap model) { model.addAttribute("paymentPlugins", pluginService.getPaymentPlugins()); return "/admin/payment_plugin/list"; }
From source file:net.groupbuy.controller.admin.StoragePluginController.java
/** * //ww w.j av a2 s. c o m */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String list(ModelMap model) { model.addAttribute("storagePlugins", pluginService.getStoragePlugins()); return "/admin/storage_plugin/list"; }
From source file:net.groupbuy.controller.shop.ProductCategoryController.java
/** * //from ww w. j a v a 2s . c om */ @RequestMapping(method = RequestMethod.GET) public String index(ModelMap model) { model.addAttribute("rootProductCategories", productCategoryService.findRoots()); return "/shop/product_category/index"; }
From source file:thoughtworks.controller.CalculatorController.java
@RequestMapping(value = "/calculate", method = RequestMethod.POST) public String calculate(@ModelAttribute("SpringWeb") Calculator calculator, ModelMap model) { model.addAttribute("firstNumber", calculator.getFirstNumber()); model.addAttribute("secondNumber", calculator.getSecondNumber()); model.addAttribute("result", calculator.calculate()); model.addAttribute("calculator", calculator); return "index"; }