CmsSite site = CmsUtils.getSite(request);
WebErrors errors = validateEdit(id, request);
if (errors.hasErrors()) {
return errors.showErrorPage(model);
}
CmsAdvertising cmsAdvertising = manager.findById(id);
model.addAttribute("cmsAdvertising", cmsAdvertising);
model.addAttribute("attr", cmsAdvertising.getAttr());
model.addAttribute("adspaceList", cmsAdvertisingSpaceMng.getList(site
.getId()));
model.addAttribute("pageNo", pageNo);
return "advertising/edit";
}