* @return
*/
@RequestMapping(value = "/guestbook*.jspx", method = RequestMethod.GET)
public String index(Integer ctgId, HttpServletRequest request,
HttpServletResponse response, ModelMap model) {
CmsSite site = CmsUtils.getSite(request);
FrontUtils.frontData(request, model, site);
FrontUtils.frontPageData(request, model);
CmsGuestbookCtg ctg = null;
if (ctgId != null) {
ctg = cmsGuestbookCtgMng.findById(ctgId);
}
if (ctg == null) {
// 留言板首页
return FrontUtils.getTplPath(request, site.getSolutionPath(),
TPLDIR_SPECIAL, GUESTBOOK_INDEX);
} else {
// 留言板类别页
model.addAttribute("ctg", ctg);
return FrontUtils.getTplPath(request, site.getSolutionPath(),
TPLDIR_SPECIAL, GUESTBOOK_CTG);
}
}