title: How to access Model attribute and update view in other method?
body: <pre><code>@RequestMapping("/test/index")
  public String index(ModelMap map&lt;----, @PathVariable(value = "language") String language,
          @PathVariable(value = "test") String test, HttpServletRequest request, HttpServletResponse response,
          HttpSession session) {
  .......
  }
  
  
  public void updateView() {
     map.put("key",value);                                
     updateview();
  }
  </code></pre>
  
  <p>I want to access and update view in other method,but how to use the ModelMap  as global variable?And how to update the view after map.put()?</p>