Package com.ourlinc.activity.domain

Examples of com.ourlinc.activity.domain.Comment


  @RequestMapping(value = "/deletecomment.jspx")
  String deletecomment(HttpServletRequest request,
      HttpServletResponse response) throws IOException {
    String actId = request.getParameter("actId");
    String comId = request.getParameter("comId");
    Comment com = activityService.getComment(Integer.valueOf(comId));
    if (null == actId) {
      request.setAttribute("errorMsg", "找不到id=" + actId + "的活动");
      return "error";
    }
    if (null == com) {
      request.setAttribute("errorMsg", "找不到id=" + comId + "的评论");
      return "error";
    }
    activityService.deleteComment(com.getId());
    response.sendRedirect("../activity/activity.jspx?actId="
        + URLEncoder.encode(actId, "utf-8"));
    return null;
  }
View Full Code Here

TOP

Related Classes of com.ourlinc.activity.domain.Comment

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.