Code example for HandlerInterceptorAdapter

Methods: postHandle

0
    public void postHandle( 
            HttpServletRequest request, 
            HttpServletResponse response, 
            Object handler, 
            ModelAndView modelAndView) throws Exception { 
        super.postHandle(request, response, handler, modelAndView); 
        if (modelAndView != null) { 
            Map<String, Banner> allBanersOfTheForum = bannerService.getAllBanners(); 
            modelAndView.addObject("banners", allBanersOfTheForum); 
            modelAndView.addObject("uploadedBanner", new Banner()); 
        } 
    } 
}