private void doEditXinWen(HttpServletRequest request, HttpServletResponse response, boolean isEditUser) throws ServletException, IOException {
           String xinwenId = StringUtil.toString(request.getParameter("xinwenId"));

            if(!StringUtil.isEmpty(xinwenId)) {
                XinWen xinWen = null;
                try {
                    xinWen = manager.findXWById(xinwenId);
                    if(xinWen != null) {
                        request.setAttribute("isEdit",isEditUser);
                        request.setAttribute("currentUserObj",xinWen);
                        request.getRequestDispatcher("/admin/xinwen/editXinWen.jsp").forward(request,response);
                        return;
                    }
                } catch (SQLException e) {
                   logger.error("查看新闻失败",e);
                    request.getRequestDispatcher("/admin/error.jsp").forward(request,response);
                    return;
                }

            }

    }