Package ru.org.linux.util

Examples of ru.org.linux.util.ServletParameterException


  @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());
View Full Code Here


  public ModelAndView showFormReply(
    @ModelAttribute("add") @Valid CommentRequest add,
    HttpServletRequest request
  ) throws Exception {
    if (add.getTopic() == null) {
      throw new ServletParameterException("тема на задана");
    }

    Template tmpl = Template.getTemplate(request);

    Map<String, Object> params = new HashMap<>();
View Full Code Here

    throws Exception {
    if (topicListForm.getMonth() != null && topicListForm.getYear() == null) {
      throw new ServletParameterMissingException("year");
    }
    if (section == null) {
      throw new ServletParameterException("section or tag required");
    }
    if (group != null && group.getSectionId() != section.getId()) {
      throw new ScriptErrorException("группа #" + group.getId() + " не принадлежит разделу #" + section.getId());
    }
  }
View Full Code Here

TOP

Related Classes of ru.org.linux.util.ServletParameterException

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.