/** * Remove the given attributes from the model. */ public ModelAndViewContainer removeAttributes(@Nullable Map<String, ?> attributes) { if (attributes != null) { for (String key : attributes.keySet()) { getModel().remove(key); } } return this; }
/** * Remove the given attributes from the model. */ public ModelAndViewContainer removeAttributes(@Nullable Map<String, ?> attributes) { if (attributes != null) { for (String key : attributes.keySet()) { getModel().remove(key); } } return this; }
@RequestMapping(method = RequestMethod.GET, value="/clear") public ModelAndView clear(DefaultSessionAttributeStore status, WebRequest request, ModelMap model) { model.remove("mySessionVar"); status.cleanupAttribute(request, "mySessionVar"); return new ModelAndView("somePage"); }
/** * Remove the given attributes from the model. */ public ModelAndViewContainer removeAttributes(@Nullable Map<String, ?> attributes) { if (attributes != null) { for (String key : attributes.keySet()) { getModel().remove(key); } } return this; }
/** * Remove the given attributes from the model. */ public ModelAndViewContainer removeAttributes(@Nullable Map<String, ?> attributes) { if (attributes != null) { for (String key : attributes.keySet()) { getModel().remove(key); } } return this; }