private WebErrors validateUpdate(Integer id, HttpServletRequest request) {
   WebErrors errors = WebErrors.create(request);
   CmsSite site = CmsUtils.getSite(request);
   if (vldExist(id, site.getId(), errors)) {
     return errors;
   }
   return errors;
 }
 @RequestMapping("/advertising_space/v_list.do")
 public String list(Integer pageNo, HttpServletRequest request, ModelMap model) {
   CmsSite site = CmsUtils.getSite(request);
   Pagination pagination =
       manager.getPageList(site.getId(), cpn(pageNo), CookieUtils.getPageSize(request));
   model.addAttribute("pagination", pagination);
   model.addAttribute("pageNo", pagination.getPageNo());
   return "advertising_space/list";
 }
  @RequestMapping(value = "/lucene/v_index.do")
  public String index(HttpServletRequest request, ModelMap model) {
    CmsSite site = CmsUtils.getSite(request);

    List<Channel> topList = channelMng.getTopList(site.getId(), true);
    List<Channel> channelList = Channel.getListForSelect(topList, null, true);
    model.addAttribute("site", site);
    model.addAttribute("channelList", channelList);
    return "lucene/index";
  }
 private WebErrors validateDelete(Integer[] ids, HttpServletRequest request) {
   WebErrors errors = WebErrors.create(request);
   CmsSite site = CmsUtils.getSite(request);
   if (errors.ifEmpty(ids, "ids")) {
     return errors;
   }
   for (Integer id : ids) {
     vldExist(id, site.getId(), errors);
   }
   return errors;
 }