@RequestMapping(value = "/edit_comment", method = RequestMethod.GET)
public ModelAndView editCommentShowHandler(
@ModelAttribute("edit") @Valid CommentRequest commentRequest
) throws ServletParameterException {
if (commentRequest.getTopic() == null) {
throw new ServletParameterException("тема на задана");
}
Comment original = commentRequest.getOriginal();
if (original == null) {
throw new ServletParameterException("Комментарий на задан");
}
MessageText messageText = msgbaseDao.getMessageText(original.getId());
commentRequest.setMsg(messageText.getText());
commentRequest.setTitle(original.getTitle());