Code example for ModelAndView

Methods: getModel

0
 
    topicPermissionService.checkView(group, message, tmpl.getCurrentUser(), false);
 
    List<PreparedEditHistory> editHistories = editHistoryService.prepareEditInfo(message, request.isSecure());
 
    ModelAndView modelAndView = new ModelAndView("history");
 
    modelAndView.getModel().put("message", message);
    modelAndView.getModel().put("editHistories", editHistories);
 
    return modelAndView;
  } 
 
  @RequestMapping({ 
    "/news/{group}/{id}/{commentid}/history", 
    "/forum/{group}/{id}/{commentid}/history", 
    "/gallery/{group}/{id}/{commentid}/history", 
    "/polls/{group}/{id}/{commentid}/history" 
  }) 
  public ModelAndView showCommentEditInfo(
Connect your IDE to all the code out there  Get Codota for Java