@RequestMapping("/test/index")
public String index(ModelMap map<----, @PathVariable(value = "language") String language,
@PathVariable(value = "test") String test, HttpServletRequest request, HttpServletResponse response,
HttpSession session) {
.......
}
public void updateView() {
map.put("key",value);
updateview();
}
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()?