private void perform(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String title = request.getParameter("title"); String content = request.getParameter("content"); Topic topic = new Topic(); topic.setTitle(title); topic.setContent(content); BlogController ctrl = BlogController.getInstance(); ctrl.postTopic(topic); request.getRequestDispatcher("/read").forward(request, response); }