Guest User

Untitled

a guest
May 27th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.43 KB | None | 0 0
  1.         try {
  2.             JForumTopic topic = userForumDao.findArticleTitle(title);
  3.             if (title.equals(topic.getTopicTitle())) {
  4.                 log.debug("topic istnieje: " + title);
  5.                 redirect(response, topic.getTopicID());
  6.             } else {
  7.                 log.debug("Tworzymy temat: " + title);
  8.                 Long topicid = createNewArticleTopic(title);
  9.                 redirect(response, topicid);
  10.                 createTopicURL(urlTitle);
  11.  
  12.             }
  13.         } catch (Exception e) {
  14.             e.printStackTrace();
  15.         }
Add Comment
Please, Sign In to add comment