Пример #1
0
  /** 保存评论信息。 供门户中文章页上填写评论信息时调用。 */
  public String saveComments() {
    if (articleId == null || commentContent == null)
      throw new BusinessException("文章ID或评论内容为空,评论失败!");

    service.saveComments(articleId, commentContent);
    return printSuccessMessage("感谢您的评论!");
  }