List of usage examples for org.springframework.ui ModelMap mergeAttributes
public ModelMap mergeAttributes(@Nullable Map<String, ?> attributes)
From source file:org.impalaframework.extension.mvc.flash.FlashHelper.java
void mergeFlashState(HttpServletRequest request, ModelMap modelMap) { final Map<String, Object> flashState = (Map<String, Object>) request.getAttribute("flashState"); if (flashState != null) { modelMap.mergeAttributes(flashState); request.removeAttribute("flashState"); }//from ww w. j av a2 s . c om }