List of usage examples for org.springframework.ui ModelMap addAttribute
public ModelMap addAttribute(String attributeName, @Nullable Object attributeValue)
From source file:com.dp2345.controller.mall.member.ProfileController.java
/** * //from w ww. j a v a 2 s . co m */ @RequestMapping(value = "/edit", method = RequestMethod.GET) public String edit(ModelMap model) { model.addAttribute("genders", Gender.values()); model.addAttribute("memberAttributes", memberAttributeService.findList()); return "shop/member/profile/edit"; }
From source file:com.citrix.cpbm.portal.fragment.controllers.AbstractStaticPagesController.java
@RequestMapping(value = "/pages/faqs", method = RequestMethod.GET) public String faqs(ModelMap map) { logger.debug("### In StaticPagesController()-> faqs() start method..."); map.addAttribute("tenant", getTenant()); logger.debug("### In faqs() end"); return "main.faqs"; }